Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/tests
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-07-16 11:30:55 +0200
committerDan McGee <dan@archlinux.org>2007-07-16 09:20:17 -0400
commitab2354e762767e6088e43b6d1e615576701a7bdb (patch)
tree86f7ccf09e6a88d006b62ac536ce819e65eb87e2 /pactest/tests
parent1d97da9450c4fc62dd884f356d67d7a746fc09da (diff)
Add remove046 pactest for FS#7622.
Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'pactest/tests')
-rw-r--r--pactest/tests/remove046.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pactest/tests/remove046.py b/pactest/tests/remove046.py
new file mode 100644
index 00000000..1ee8be17
--- /dev/null
+++ b/pactest/tests/remove046.py
@@ -0,0 +1,10 @@
+self.description = "Cascade remove a package with a broken required by"
+
+lp1 = pmpkg("pkg1")
+lp1.requiredby = [ "fake" ]
+self.addpkg2db("local", lp1)
+
+self.args = "-Rc %s" % lp1.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=pkg1")