[Frugalware-darcs] pacman: sync_sysupgrade(): avoid adding packages with newer version & replaces to trans->packages twice

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:47:29 CET 2006


[sync_sysupgrade(): avoid adding packages with newer version & replaces to trans->packages twice
VMiklos <vmiklos at frugalware.org>**20060202140346
 the scenario is the following:
 foo and bar installed
 in the sync repos we have a newer version of foo, plus now foo replaces bar
 in this case foo should be added to trans->packages only once
] {
hunk ./lib/libalpm/sync.c 256
+		/* check if spkg->name is already in the packages list. */
+		} else if (sync = find_pkginsync(spkg->name, trans->packages)) {
+			/* found it -- just ignore the package */
}


More information about the Frugalware-darcs mailing list