index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2010-05-30 14:41:59 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-06-02 13:14:51 -0500 |
commit | 844d82fad811626b0b8e54db60ee4b3ea32a3cb9 (patch) | |
tree | d6ae52c513db060b1f81227c34bfb366ea3fa58c /test/pacman/tests/sync134.py | |
parent | ccea1b55766200c1ab371cf0f3b38c4cebdb2063 (diff) |
-rw-r--r-- | test/pacman/tests/sync134.py | 21 |
diff --git a/test/pacman/tests/sync134.py b/test/pacman/tests/sync134.py new file mode 100644 index 00000000..572ab326 --- /dev/null +++ b/test/pacman/tests/sync134.py @@ -0,0 +1,21 @@ +self.description = "Sysupgrade with a set of sync packages replacing a set local one" + +sp1 = pmpkg("pkg2") +sp1.replaces = ["pkg1"] + +sp2 = pmpkg("pkg3") +sp2.replaces = ["pkg1"] + +for p in sp1, sp2: + self.addpkg2db("sync", p) + +lp = pmpkg("pkg1") + +self.addpkg2db("local", lp) + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=pkg1") +for p in sp1, sp2: + self.addrule("PKG_EXIST=%s" % p.name) |