Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / replace100.py
blobf94ca0f79fb9dc13a1c58b93fe4e1e2d325a0aaa
1 self.description = "Sysupgrade with a replace and dependency chain"
3 sp1 = pmpkg("util-linux", "2.19-1")
4 sp1.replaces = ["util-linux-ng"]
5 sp1.conflicts = ["util-linux-ng"]
6 sp1.provides = ["util-linux-ng=2.19"]
7 sp1.files = ["sbin/blkid"]
8 self.addpkg2db("sync", sp1)
10 sp2 = pmpkg("mkinitcpio", "0.6.8-1")
11 sp2.depends = ["util-linux-ng>=2.17"]
12 self.addpkg2db("sync", sp2)
14 sp3 = pmpkg("kernel26", "2.6.37.1-1")
15 sp3.depends = ["mkinitcpio>=0.6.8"]
16 # /sbin/blkid is in both util-linux and util-linux-ng; however, if we cannot
17 # find it, that means we ended up in limbo between removing the old named
18 # package and installing the new named package.
19 sp3.install['post_upgrade'] = "if [ -f sbin/blkid ]; then echo '' > foundit; fi"
20 self.addpkg2db("sync", sp3)
23 lp1 = pmpkg("util-linux-ng", "2.18-1")
24 lp1.files = ["sbin/blkid"]
25 self.addpkg2db("local", lp1)
27 lp2 = pmpkg("mkinitcpio", "0.6.8-1")
28 lp2.depends = ["util-linux-ng>=2.17"]
29 self.addpkg2db("local", lp2)
31 lp3 = pmpkg("kernel26", "2.6.37-1")
32 lp3.depends = ["mkinitcpio>=0.6.8"]
33 self.addpkg2db("local", lp3)
36 self.args = "-Su"
38 self.addrule("PACMAN_RETCODE=0")
39 self.addrule("!PKG_EXIST=util-linux-ng")
40 self.addrule("PKG_VERSION=util-linux|2.19-1")
41 self.addrule("PKG_VERSION=kernel26|2.6.37.1-1")
42 self.addrule("FILE_EXIST=sbin/blkid")
43 self.addrule("FILE_EXIST=foundit")
45 self.expectfailure = True