1 self
.description
= "Upgrade a package, with a file entering the pkg in 'backup' (unchanged)"
3 self
.filesystem
= ["etc/dummy.conf"]
6 lp
.files
= ["usr/bin/dummy"]
7 self
.addpkg2db("local", lp
)
9 p
= pmpkg("dummy", "1.0-2")
10 p
.files
= ["usr/bin/dummy",
12 p
.backup
= ["etc/dummy.conf"]
15 self
.args
= "-U %s" % p
.filename()
17 self
.addrule("PACMAN_RETCODE=0")
18 self
.addrule("PKG_VERSION=dummy|1.0-2")
19 self
.addrule("!FILE_PACNEW=etc/dummy.conf")
20 self
.addrule("!FILE_PACSAVE=etc/dummy.conf")
21 self
.addrule("!FILE_PACORIG=etc/dummy.conf")
22 self
.addrule("FILE_EXIST=etc/dummy.conf")