blob: 955e22d0d529f242a48e41a8a5c690e3b235f0a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|