1 self
.description
= "Replace a package with a file in 'backup' (local modified)"
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
)
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