1 self
.description
= "Upgrade a package, with a file in 'backup' (local and new modified)"
4 lp
.files
= ["etc/dummy.conf"]
5 lp
.backup
= ["etc/dummy.conf*"]
6 self
.addpkg2db("local", lp
)
8 p
= pmpkg("dummy", "1.0-2")
9 p
.files
= ["etc/dummy.conf**"]
10 p
.backup
= ["etc/dummy.conf"]
13 self
.args
= "-U %s" % p
.filename()
15 self
.addrule("PACMAN_RETCODE=0")
16 self
.addrule("PKG_VERSION=dummy|1.0-2")
17 self
.addrule("!FILE_MODIFIED=etc/dummy.conf")
18 self
.addrule("FILE_PACNEW=etc/dummy.conf")
19 self
.addrule("!FILE_PACSAVE=etc/dummy.conf")