[pacman-dev] [PATCH] check localdb before upgrading package
Allan McRae
allan at archlinux.org
Tue Nov 27 11:24:00 UTC 2018
On 17/11/18 1:47 pm, Andrew Gregory wrote:
> 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#5554
>
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> ---
> lib/libalpm/add.c | 2 +-
> test/pacman/meson.build | 1 +
> test/pacman/tests/TESTS | 1 +
> .../tests/replace-and-upgrade-package.py | 27 +++++++++++++++++++
> 4 files changed, 30 insertions(+), 1 deletion(-)
> create mode 100644 test/pacman/tests/replace-and-upgrade-package.py
>
Thanks! Committed with bug number typo fixed.
A
More information about the pacman-dev
mailing list