summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-09-15 17:41:33 +0200
committerAllan McRae <allan@archlinux.org>2012-12-14 03:35:34 +0100
commit1c2cfc5bad81b242c06a88361b6d8fca9160949a (patch)
treea6411ee055125e35786a6ebca71f5285057d5456 /test
parent9cd7ff807dc1014d8335b551524aca1994bb1e0d (diff)
downloadpacman-1c2cfc5bad81b242c06a88361b6d8fca9160949a.tar.gz
pacman-1c2cfc5bad81b242c06a88361b6d8fca9160949a.tar.xz
pactest: removal of packages with unmet dependencies
Provide a package for removing packages with unmet dependencies. Currently pacman removes too many packages from the transaction (FS#30649). Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/sync140.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/pacman/tests/sync140.py b/test/pacman/tests/sync140.py
new file mode 100644
index 00000000..d20da985
--- /dev/null
+++ b/test/pacman/tests/sync140.py
@@ -0,0 +1,28 @@
+self.description = "Sysupgrade with ignored package prevent other upgrade"
+
+lp1 = pmpkg("glibc", "1.0-1")
+lp2 = pmpkg("gcc-libs", "1.0-1")
+lp2.depends = ["glibc>=1.0-1"]
+lp3 = pmpkg("pcre", "1.0-1")
+lp3.depends = ["gcc-libs"]
+
+for p in lp1, lp2, lp3:
+ self.addpkg2db("local", p)
+
+sp1 = pmpkg("glibc", "1.0-2")
+sp2 = pmpkg("gcc-libs", "1.0-2")
+sp2.depends = ["glibc>=1.0-2"]
+sp3 = pmpkg("pcre", "1.0-2")
+sp3.depends = ["gcc-libs"]
+
+for p in sp1, sp2, sp3:
+ self.addpkg2db("sync", p)
+
+self.args = "-Su --ignore %s --ask=32" % sp1.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_VERSION=glibc|1.0-1")
+self.addrule("PKG_VERSION=gcc-libs|1.0-1")
+self.addrule("PKG_VERSION=pcre|1.0-2")
+
+self.expectfailure = True