Nagy Gabor
882bff36ac
Remove find_replacements()
...
"Foo replaces bar" simply means that "foo is a new version of bar".
So this patch refactors the code to use this "rule".
_alpm_sync_sysupgrade now does the following for each local package [bar]
(pseudo-code):
for db in syncdbs {
if(db contains bar) {check if db/bar is an upgrade; break;}
replacers = find(bar replacers in db);
if(replacers!=NULL) {ask_user; break;}
}
Note:
1. Replacers are grouped per repo. If more than one package replace bar in
a repo, all of them are considered ("package set of bar replacers").
2. If repo1/foo1 and repo2/foo2 both replaces bar, only repo1/foo1 is
considered (if repo1 stands before repo2 in pacman.conf). FS#11737 is fixed.
3. It can happen that pacman doesn't consider any replacer, if it found a
literal "earlier", so sync132.py modified accordingly (btw, that situation
should not appear irl).
The new sysupgrade code doesn't use sync_newversion(), so I removed the
"local is newer than repo" message, which was annoying with -Qu and
SyncFirst.
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-05-18 23:11:05 -05:00
..
2009-05-18 22:25:53 -05:00
2007-10-29 07:15:41 -05:00
2008-03-08 14:13:22 -06:00
2008-03-08 14:13:22 -06:00
2007-10-29 07:15:41 -05:00
2008-01-21 19:35:43 -06:00
2007-02-23 06:50:42 +00:00
2008-07-24 22:16:29 -05:00
2008-07-24 22:16:29 -05:00
2008-01-06 10:59:41 +01:00
2008-07-24 22:16:29 -05:00
2008-07-29 21:46:36 -05:00
2009-02-23 20:37:14 -06:00
2009-02-23 20:37:14 -06:00
2009-02-23 20:37:14 -06:00
2009-02-23 20:37:14 -06:00
2009-02-23 20:37:14 -06:00
2008-03-08 14:13:22 -06:00
2007-04-16 20:34:57 -05:00
2007-04-16 20:34:57 -05:00
2008-10-12 21:36:30 -05:00
2008-04-28 22:24:40 -05:00
2008-04-28 22:24:40 -05:00
2008-04-28 22:24:40 -05:00
2007-12-02 17:24:22 -06:00
2007-12-02 17:24:22 -06:00
2007-12-02 17:24:22 -06:00
2007-12-02 17:24:22 -06:00
2008-01-14 22:03:03 -06:00
2008-01-14 21:43:30 -06:00
2008-01-14 22:03:03 -06:00
2008-01-14 22:03:03 -06:00
2009-02-23 20:33:56 -06:00
2008-01-14 22:03:03 -06:00
2009-02-23 20:33:56 -06:00
2007-12-02 17:56:48 -06:00
2007-12-28 19:56:29 -06:00
2008-03-30 16:47:27 -05:00
2007-12-02 17:56:48 -06:00
2007-12-28 19:56:29 -06:00
2008-01-11 23:19:08 -06:00
2008-03-10 18:57:36 -05:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2007-02-23 07:04:12 +00:00
2007-02-23 07:04:12 +00:00
2009-01-12 22:44:00 -06:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2007-07-10 11:10:54 -04:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-03-10 19:16:01 -05:00
2008-03-10 19:16:01 -05:00
2008-05-29 06:37:19 -05:00
2008-07-13 09:14:36 -05:00
2008-10-12 21:29:04 -05:00
2008-10-12 21:29:04 -05:00
2008-03-08 14:13:22 -06:00
2007-11-11 09:51:09 -06:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2008-07-07 21:14:13 -05:00
2007-07-15 10:37:38 -04:00
2007-07-15 19:46:18 -04:00
2007-02-23 06:50:42 +00:00
2008-03-17 20:58:28 -05:00
2007-07-15 12:46:02 -04:00
2008-01-21 19:39:26 -06:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2007-09-23 19:50:11 -05:00
2007-02-23 06:50:42 +00:00
2006-10-15 19:04:27 +00:00
2006-10-15 19:04:27 +00:00
2006-10-15 19:04:27 +00:00
2007-02-23 06:50:42 +00:00
2006-10-15 19:04:27 +00:00
2008-03-17 20:58:28 -05:00
2006-10-15 19:04:27 +00:00
2007-02-26 08:33:48 +00:00
2009-05-18 23:11:05 -05:00
2008-03-17 20:58:28 -05:00
2006-10-15 19:04:27 +00:00
2006-10-15 19:04:27 +00:00
2007-04-01 21:52:28 -04:00
2007-04-23 02:44:24 -04:00
2008-03-17 20:58:28 -05:00
2008-08-23 18:01:45 -05:00
2009-02-23 20:33:56 -06:00
2008-05-13 15:49:02 -05:00
2008-07-07 21:14:13 -05:00
2007-09-06 19:30:18 -05:00
2007-09-06 19:30:18 -05:00
2008-07-24 22:16:29 -05:00
2008-01-05 17:35:43 -06:00
2008-05-29 06:37:20 -05:00
2008-05-29 06:37:20 -05:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2007-02-23 06:50:42 +00:00
2008-01-23 20:13:01 -06:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-01-23 20:13:01 -06:00
2007-02-23 06:50:42 +00:00
2007-02-21 06:33:13 +00:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2007-11-25 15:29:37 -06:00
2007-02-23 06:50:42 +00:00
2009-04-11 14:39:24 -05:00
2006-10-15 19:04:27 +00:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:12:55 -05:00
2007-10-08 20:46:55 -05:00
2009-02-23 20:33:56 -06:00
2007-12-28 19:56:29 -06:00
2008-03-30 16:47:27 -05:00
2007-12-02 17:56:48 -06:00
2007-12-02 17:56:48 -06:00
2009-04-11 13:59:55 -05:00
2007-10-28 21:18:55 -05:00
2006-10-15 19:04:27 +00:00
2006-10-15 19:04:27 +00:00
2007-02-23 06:50:42 +00:00
2006-10-15 19:04:27 +00:00
2008-03-08 14:13:22 -06:00
2008-03-17 20:58:28 -05:00
2008-02-11 20:40:43 -06:00
2008-03-08 14:13:22 -06:00
2008-03-08 14:13:22 -06:00
2008-03-08 14:13:22 -06:00
2008-03-08 14:13:22 -06:00
2008-03-08 14:13:22 -06:00
2007-09-23 20:48:04 -05:00
2007-09-23 20:48:04 -05:00
2007-09-23 20:48:04 -05:00
2007-09-23 20:48:04 -05:00
2007-09-23 19:50:03 -05:00
2007-09-23 20:48:04 -05:00
2008-01-05 13:47:49 -06:00
2007-02-23 06:50:42 +00:00
2007-07-15 12:46:02 -04:00
2008-01-21 19:39:26 -06:00
2008-02-11 20:40:43 -06:00
2008-02-11 20:40:43 -06:00
2008-01-01 20:03:18 -06:00
2008-01-05 16:49:09 -06:00
2008-02-07 19:36:17 -06:00
2008-07-24 22:16:29 -05:00
2007-02-27 01:34:07 +00:00
2008-07-24 22:16:29 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-07-07 21:14:13 -05:00
2008-03-17 20:58:28 -05:00
2008-03-08 14:13:22 -06:00
2008-03-08 14:13:22 -06:00
2008-07-07 21:14:13 -05:00
2008-03-08 14:13:22 -06:00
2008-03-08 14:13:22 -06:00
2008-07-07 21:14:13 -05:00
2008-03-17 20:58:28 -05:00