index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Olivier Brunel <i.am.jack.mail@gmail.com> | 2013-03-03 22:46:19 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-03-07 15:38:47 +1000 |
commit | 1b39653e9624db98c2e707a1991bc32bb26f2b67 (patch) | |
tree | 801ba006ea74ba92ab16dcc6994f9861eed1b651 /test | |
parent | a98bb96b434d788d1599e622c33dce851113fabd (diff) |
-rw-r--r-- | test/pacman/tests/sync1104.py | 18 |
diff --git a/test/pacman/tests/sync1104.py b/test/pacman/tests/sync1104.py new file mode 100644 index 00000000..5cec98ad --- /dev/null +++ b/test/pacman/tests/sync1104.py @@ -0,0 +1,18 @@ +self.description = "Don't update (reinstall) a replaced package" + +lp = pmpkg("old", "1-1") +self.addpkg2db("local", lp) + +p1 = pmpkg("new") +p1.provides = ["old"] +p1.replaces = ["old"] +self.addpkg2db("sync1", p1) + +p2 = pmpkg("old", "1-2") +self.addpkg2db("sync2", p2) + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=old") +self.addrule("PKG_EXIST=new") |