Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / upgrade043.py
blobf531cb8298775e112b40d34412d1711fac431fa7
1 self.description = "Backup file relocation (reverse order)"
3 lp1 = pmpkg("bash")
4 lp1.files = ["etc/profile*"]
5 lp1.backup = ["etc/profile"]
6 self.addpkg2db("local", lp1)
8 p1 = pmpkg("bash", "1.0-2")
9 p1.depends = [ "filesystem" ]
10 self.addpkg(p1)
12 lp2 = pmpkg("filesystem")
13 self.addpkg2db("local", lp2)
15 p2 = pmpkg("filesystem", "1.0-2")
16 p2.files = ["etc/profile**"]
17 p2.backup = ["etc/profile"]
18 self.addpkg(p2)
20 self.args = "-U %s" % " ".join([p.filename() for p in p1, p2])
22 self.filesystem = ["etc/profile"]
24 self.addrule("PACMAN_RETCODE=0")
25 self.addrule("PKG_VERSION=bash|1.0-2")
26 self.addrule("PKG_VERSION=filesystem|1.0-2")
27 self.addrule("!FILE_PACSAVE=etc/profile")
28 self.addrule("FILE_PACNEW=etc/profile")
29 self.addrule("FILE_EXIST=etc/profile")