2007-02-22 22:50:42 -08:00
|
|
|
self.description = "Remove a package with a file marked for backup"
|
2006-10-15 12:04:27 -07:00
|
|
|
|
|
|
|
p1 = pmpkg("dummy")
|
|
|
|
p1.files = ["etc/dummy.conf"]
|
|
|
|
p1.backup = ["etc/dummy.conf"]
|
|
|
|
self.addpkg2db("local", p1)
|
|
|
|
|
2007-02-22 22:50:42 -08:00
|
|
|
self.args = "-R %s" % p1.name
|
2006-10-15 12:04:27 -07:00
|
|
|
|
2007-02-22 22:50:42 -08:00
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
2006-10-15 12:04:27 -07:00
|
|
|
self.addrule("!PKG_EXIST=dummy")
|
|
|
|
self.addrule("!FILE_EXIST=etc/dummy.conf")
|
|
|
|
self.addrule("FILE_PACSAVE=etc/dummy.conf")
|