diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-03-03 22:09:21 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-03-11 01:16:01 +0100 |
commit | 35135c0a0cbac592e72296c0ca64e9def0308942 (patch) | |
tree | 8ec7fecabc1f17ba2a7cfd514b640c4afeaafa26 /pactest/tests/remove050.py | |
parent | d060e31be3586ce27382f80eaed7a9edf2c86aeb (diff) | |
download | pacman-35135c0a0cbac592e72296c0ca64e9def0308942.tar.gz pacman-35135c0a0cbac592e72296c0ca64e9def0308942.tar.xz |
Add -Rss option
* -Rss removes all dependencies (including explicitly installed ones).
* updated documentation
* two pactest files added to test the difference between -Rs and -Rss
Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Diffstat (limited to 'pactest/tests/remove050.py')
-rw-r--r-- | pactest/tests/remove050.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pactest/tests/remove050.py b/pactest/tests/remove050.py new file mode 100644 index 00000000..44b0d18c --- /dev/null +++ b/pactest/tests/remove050.py @@ -0,0 +1,20 @@ +self.description = "-Rs test (exclude explicit)" + +lp1 = pmpkg("pkg1") +lp1.depends = ["pkg2" , "pkg3"] +self.addpkg2db("local", lp1) + +lp2 = pmpkg("pkg2") +lp2.reason = 1 +self.addpkg2db("local", lp2) + +lp3 = pmpkg("pkg3") +lp3.reason = 0 +self.addpkg2db("local", lp3) + +self.args = "-Rs %s" % lp1.name + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=pkg1") +self.addrule("!PKG_EXIST=pkg2") +self.addrule("PKG_EXIST=pkg3") |