Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / replace110.py
blobc6e2e5f03e48ea9792a6dde89b285bc867447f51
1 self.description = "Replace a package with a file in 'backup' (local modified)"
2 # FS#24543
4 lp = pmpkg("dummy")
5 lp.files = ["etc/dummy.conf*", "bin/dummy"]
6 lp.backup = ["etc/dummy.conf"]
7 self.addpkg2db("local", lp)
9 sp = pmpkg("replacement")
10 sp.replaces = ["dummy"]
11 sp.files = ["etc/dummy.conf", "bin/dummy*"]
12 sp.backup = ["etc/dummy.conf"]
13 self.addpkg2db("sync", sp)
15 self.args = "-Su"
17 self.addrule("!PKG_EXIST=dummy")
18 self.addrule("PKG_EXIST=replacement")
20 self.addrule("FILE_EXIST=etc/dummy.conf")
21 self.addrule("!FILE_MODIFIED=etc/dummy.conf")
22 self.addrule("!FILE_PACNEW=etc/dummy.conf")
23 self.addrule("!FILE_PACSAVE=etc/dummy.conf")
25 self.addrule("FILE_EXIST=bin/dummy")
27 self.expectfailure = True