From 0fa59a62d89adb88615a6bc1fd0ee80e0a73a192 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 16 Sep 2012 01:41:33 +1000 Subject: [PATCH] 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 --- test/pacman/tests/sync140.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/pacman/tests/sync140.py diff --git a/test/pacman/tests/sync140.py b/test/pacman/tests/sync140.py new file mode 100644 index 0000000..03b9e72 --- /dev/null +++ b/test/pacman/tests/sync140.py @@ -0,0 +1,26 @@ +self.description = "Sysupgrade with ignored package prevent other upgrade" + +lp1 = pmpkg("pkg1", "1.0-1") +lp2 = pmpkg("pkg2", "1.0-1") +lp2.depends = ["pkg1>=1.0-1"] +lp3 = pmpkg("pkg3", "1.0-1") +lp3.depends = ["pkg2"] + +for p in lp1, lp2, lp3: + self.addpkg2db("local", p) + +sp1 = pmpkg("pkg1", "1.0-2") +sp2 = pmpkg("pkg2", "1.0-2") +sp2.depends = ["pkg1>=1.0-2"] +sp3 = pmpkg("pkg3", "1.0-2") +sp3.depends = ["pkg2"] + +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=pkg1|1.0-1") +self.addrule("PKG_VERSION=pkg2|1.0-1") +self.addrule("PKG_VERSION=pkg3|1.0-2") -- 1.7.12