index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-09-16 03:59:43 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 12:35:34 +1000 |
commit | 927fdc0079c48b5bb401ac6e112d2d864919c5cc (patch) | |
tree | 750cde2b59608af5a3ef7397b941287b2ecac3d3 | |
parent | 1c2cfc5bad81b242c06a88361b6d8fca9160949a (diff) |
-rw-r--r-- | test/pacman/tests/sync141.py | 28 |
diff --git a/test/pacman/tests/sync141.py b/test/pacman/tests/sync141.py new file mode 100644 index 00000000..b2c996eb --- /dev/null +++ b/test/pacman/tests/sync141.py @@ -0,0 +1,28 @@ +self.description = "Sysupgrade with ignored package prevent other upgrade" + +lp1 = pmpkg("c_glibc", "1.0-1") +lp2 = pmpkg("b_gcc-libs", "1.0-1") +lp2.depends = ["c_glibc>=1.0-1"] +lp3 = pmpkg("a_pcre", "1.0-1") +lp3.depends = ["b_gcc-libs"] + +for p in lp1, lp2, lp3: + self.addpkg2db("local", p) + +sp1 = pmpkg("c_glibc", "1.0-2") +sp2 = pmpkg("b_gcc-libs", "1.0-2") +sp2.depends = ["c_glibc>=1.0-2"] +sp3 = pmpkg("a_pcre", "1.0-2") +sp3.depends = ["b_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=c_glibc|1.0-1") +self.addrule("PKG_VERSION=b_gcc-libs|1.0-1") +self.addrule("PKG_VERSION=a_pcre|1.0-2") + +self.expectfailure = True |