[pacman-dev] [PATCH] libalpm: fix for conflicts&provides in sync_prepare()
hi http://frugalware.org/~vmiklos/patches/libpacman-proposed/conflict_provide.d... the scenario is the following: package A conflicts&provides B old: $ sudo pacman -S libnfsidmap resolving dependencies... done. looking for inter-conflicts... done. Targets: libnfsidmap-0.12-1 nfsidmap-0.11-1 Total Package Size: 0.1 MB Proceed with upgrade? [Y/n] new: $ sudo ./pacman.static -S libnfsidmap resolving dependencies... done. looking for inter-conflicts... :: libnfsidmap conflicts with nfsidmap. Remove nfsidmap? [Y/n] done. Remove: nfsidmap Targets: libnfsidmap-0.12-1 Total Package Size: 0.1 MB Proceed with upgrade? [Y/n] reason: appending the package to the replaces list is unnecessary if we don't set the solved variable to 1, as that way the type will be set to PM_SYNC_TYPE_REPLACE later udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
VMiklos wrote:
http://frugalware.org/~vmiklos/patches/libpacman-proposed/conflict_provide.d...
the scenario is the following: package A conflicts&provides B
old: $ sudo pacman -S libnfsidmap resolving dependencies... done. looking for inter-conflicts... done.
Targets: libnfsidmap-0.12-1 nfsidmap-0.11-1
Total Package Size: 0.1 MB
Proceed with upgrade? [Y/n]
new: $ sudo ./pacman.static -S libnfsidmap resolving dependencies... done. looking for inter-conflicts... :: libnfsidmap conflicts with nfsidmap. Remove nfsidmap? [Y/n] done.
Remove: nfsidmap
Targets: libnfsidmap-0.12-1
Total Package Size: 0.1 MB
Proceed with upgrade? [Y/n]
reason: appending the package to the replaces list is unnecessary if we don't set the solved variable to 1, as that way the type will be set to PM_SYNC_TYPE_REPLACE later
Applied. Thanks -- Aurelien
participants (2)
-
Aurelien Foret
-
VMiklos