diff options
author | Chantry Xavier <shiningxc@gmail.com> | 2007-08-13 00:17:32 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-23 20:13:01 -0600 |
commit | 88cbee3c24768470cc0d4abe050e98b989807a67 (patch) | |
tree | f8054873d7a6bc84238c1208a40cceaa16689f4a /pactest/tests/sync893.py | |
parent | 69c6d59bb6efc1ae1bcf58d19d049d435dc974b2 (diff) | |
download | pacman-88cbee3c24768470cc0d4abe050e98b989807a67.tar.xz |
libalpm/sync.c : conflicts resolving cleanup.
The original patch from Nagy tried to resolve target vs target conflicts,
and so broke the following pactests : sync040, sync041 and sync990
Nagy's proposal to solve this situation was to choose the interactive way,
ask the user how to deal with it: either remove pkg1 or remove pkg2 or stop
here. So he left this as a TODO.
But instead of trying to resolve these conflicts or asking the user, I
tried to find a more conservative way, looking at what the current pactests
expected:
If between the two conflicting packages, one provides the other, pacman
will keep that one and remove the other from the target list. That breaks
sync893 and sync897. But Dan agreed these two looked weird and should be
changed.
This commit should close FS#8897, FS#8899 and FS#9024.
Reference:
http://www.archlinux.org/pipermail/pacman-dev/2007-October/009745.html
http://www.archlinux.org/pipermail/pacman-dev/2007-December/010393.html
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests/sync893.py')
-rw-r--r-- | pactest/tests/sync893.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pactest/tests/sync893.py b/pactest/tests/sync893.py index 9420b74c..1c8494a3 100644 --- a/pactest/tests/sync893.py +++ b/pactest/tests/sync893.py @@ -15,6 +15,6 @@ self.addpkg2db("local", lp2) self.args = "-S %s" % " ".join([p.name for p in sp1, sp2]) -self.addrule("PACMAN_RETCODE=0") +self.addrule("PACMAN_RETCODE=1") self.addrule("PKG_EXIST=pkg1") -self.addrule("!PKG_EXIST=pkg2") +self.addrule("PKG_EXIST=pkg2") |