1 2 3 4 5 6 7 8 9 10 11
self.description = "Remove a package in HoldPkg" p1 = pmpkg("foopkg") self.addpkg2db("local", p1) self.option["HoldPkg"] = ["???pkg"] self.args = "-R %s" % p1.name self.addrule("PACMAN_RETCODE=1") self.addrule("PKG_EXIST=foopkg")