1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-15 13:55:09 -05:00

add pactest for replacing a shared provider

This is currently expected to fail.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dave Reisner 2011-08-12 21:31:54 -04:00 committed by Dan McGee
parent ce8f91a71b
commit 8d5018e780

View File

@ -0,0 +1,21 @@
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")
self.expectfailure = True