From 1b39653e9624db98c2e707a1991bc32bb26f2b67 Mon Sep 17 00:00:00 2001 From: Olivier Brunel Date: Sun, 3 Mar 2013 22:46:19 +0100 Subject: libalpm: Fix installing update of a replaced package During a sysupgrade, if a package is replaced by another, and an update for the former package is found (on another repo) the replaced package would be re-installed. Signed-off-by: Olivier Brunel Signed-off-by: Allan McRae --- test/pacman/tests/sync1104.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/pacman/tests/sync1104.py (limited to 'test/pacman') 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") -- cgit v1.2.3-24-g4f1b