Date: Saturday, March 3, 2007 @ 19:14:27 Author: aaron Path: /home/cvs-pacman/pacman-lib/pactest/tests Added: remove040.py (1.1) Added a test for checking 'requiredby' removal --------------+ remove040.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) Index: pacman-lib/pactest/tests/remove040.py diff -u /dev/null pacman-lib/pactest/tests/remove040.py:1.1 --- /dev/null Sat Mar 3 19:14:27 2007 +++ pacman-lib/pactest/tests/remove040.py Sat Mar 3 19:14:26 2007 @@ -0,0 +1,18 @@ +self.description = "Remove a package required by another package" + +lp1 = pmpkg("pkg1") +lp1.depends = ["imaginary"] +self.addpkg2db("local", lp1) + +lp2 = pmpkg("pkg2") +lp2.provides = ["imaginary"] +lp2.requiredby = [ "pkg1" ] +self.addpkg2db("local", lp2) + + +self.args = "-R %s" % lp1.name + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=pkg1") +self.addrule("PKG_EXIST=pkg2") +self.addrule("!PKG_REQUIREDBY=pkg2|pkg1")