Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-02-27 22:20:23 +1000
committerDan McGee <dan@archlinux.org>2011-02-27 13:26:56 -0600
commite8f799ba83904db2a347e7d37fe217216a0faf90 (patch)
tree06c0452d65d41451e8481343a73806ed9956b6b2
parent3149a45bfbf05a02155f17bbd10fa58ec24f5655 (diff)
pactest for removing a required empty directory
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--test/pacman/tests/remove070.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pacman/tests/remove070.py b/test/pacman/tests/remove070.py
new file mode 100644
index 00000000..e0587e17
--- /dev/null
+++ b/test/pacman/tests/remove070.py
@@ -0,0 +1,21 @@
+self.description = "Remove a package with an empty directory needed by another package"
+
+p1 = pmpkg("pkg1")
+p1.files = ["bin/pkg1", "opt/"]
+
+p2 = pmpkg("pkg2")
+p2.files = ["bin/pkg2", "opt/"]
+
+for p in p1, p2:
+ self.addpkg2db("local", p)
+
+self.args = "-R %s" % p1.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=pkg1")
+self.addrule("PKG_EXIST=pkg2")
+self.addrule("!FILE_EXIST=bin/pkg1")
+self.addrule("FILE_EXIST=bin/pkg2")
+self.addrule("FILE_EXIST=opt/")
+
+self.expectfailure = True