From f28ddd9d93ba5e16848cc2ed85a38cec4d2f2b65 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 16 Nov 2018 19:47:30 -0800 Subject: check localdb before upgrading package Commit 2ee7a8d89ad693617307260604e1d58757fd2978 replaced a manual check for a local package with a check for the "oldpkg" member, which gets set at the beginning of the transaction. If the package was also in the remove list, such as when a package gets replaced, it would no longer be in the local db and pacman would try to remove it twice, resulting in superfluous error messages. Fixes: FS#50875, FS#55534 Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/pacman/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'test/pacman/meson.build') diff --git a/test/pacman/meson.build b/test/pacman/meson.build index cf64296e..3ad1fcd0 100644 --- a/test/pacman/meson.build +++ b/test/pacman/meson.build @@ -148,6 +148,7 @@ pacman_tests = [ { 'name': 'tests/remove060.py' }, { 'name': 'tests/remove070.py' }, { 'name': 'tests/remove071.py' }, + { 'name': 'tests/replace-and-upgrade-package.py' }, { 'name': 'tests/replace100.py' }, { 'name': 'tests/replace101.py' }, { 'name': 'tests/replace102.py' }, -- cgit v1.2.3-24-g4f1b