From 3ed57be450e35c3a3aaa99af722b615a989027c7 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 29 Mar 2016 16:36:59 +1000 Subject: Print replacements when using -Sup When printing a list of URLs of packages to be updated, pacman was ignoring any replacements that would be made in the update process. Fixes FS#35812 Signed-off-by: Allan McRae --- test/pacman/tests/TESTS | 1 + .../tests/sync-sysupgrade-print-replaced-packages.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/pacman/tests/sync-sysupgrade-print-replaced-packages.py (limited to 'test') diff --git a/test/pacman/tests/TESTS b/test/pacman/tests/TESTS index 9c330203..62d1f2ae 100644 --- a/test/pacman/tests/TESTS +++ b/test/pacman/tests/TESTS @@ -161,6 +161,7 @@ TESTS += test/pacman/tests/sync-nodepversion03.py TESTS += test/pacman/tests/sync-nodepversion04.py TESTS += test/pacman/tests/sync-nodepversion05.py TESTS += test/pacman/tests/sync-nodepversion06.py +TESTS += test/pacman/tests/sync-sysupgrade-print-replaced-packages.py TESTS += test/pacman/tests/sync-update-assumeinstalled.py TESTS += test/pacman/tests/sync-update-package-removing-required-provides.py TESTS += test/pacman/tests/sync001.py diff --git a/test/pacman/tests/sync-sysupgrade-print-replaced-packages.py b/test/pacman/tests/sync-sysupgrade-print-replaced-packages.py new file mode 100644 index 00000000..1325c6c3 --- /dev/null +++ b/test/pacman/tests/sync-sysupgrade-print-replaced-packages.py @@ -0,0 +1,14 @@ +self.description = "Print replacements when using -Sup" + + +lp = pmpkg("a", "1-1") +self.addpkg2db("local", lp) + +sp = pmpkg("b", "2-2") +sp.replaces = ["a"] +self.addpkg2db("sync", sp) + +self.args = "-Sup" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PACMAN_OUTPUT=%s-%s" % (sp.name, sp.version)) -- cgit v1.2.3-24-g4f1b