1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/test/pacman/tests/replace103.py
Dan McGee 3752edbff4 Fix replacement of provider issue
When we switched to using alpm_depcmp() in resolving replacments, we had
some interesting behavior with regard to providers and packages not
found in repositories. Teach the replacement resolving code to not look
at provisions at all to be slightly more sane.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-18 10:47:41 -05:00

20 lines
569 B
Python

self.description = "Sysupgrade with a replace on a provider"
sp1 = pmpkg("util-linux", "2.19.1-2")
sp1.provides = ["util-linux-ng=2.19.1"]
sp1.conflicts = ["util-linux-ng"]
sp1.replaces = ["util-linux-ng"]
self.addpkg2db("sync", sp1)
sp2 = pmpkg("util-linux-git", "20110811-1")
sp2.replaces = ["util-linux-ng"]
sp2.conflicts = ["util-linux-ng", "util-linux"]
sp2.provides = ["util-linux", "util-linux-ng"]
self.addpkg2db("local", sp2)
self.args = "-Su"
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=util-linux-git")
self.addrule("!PKG_EXIST=util-linux")