pacman/lib/libalpm
Michael Straube 3a5a0d53bc Move skipping of duplicate sync/remove targets into libalpm
sync:
As pointed out by Andrew Gregory there could be an error when adding
duplicates if they are two separate packages with the same name. Add a
check in alpm_add_pkg() to test whether the duplicate is actually the
same package, and if so, log a debug message and return success to skip
the package. If the duplicate is a different package return
ALPM_ERR_TRANS_DUP_TARGET and treat that error just like any other error
in pacman.

remove:
Change alpm_remove_pkg() to just log a debug message and return success
to skip duplicates. Remove the handling of ALPM_ERR_TRANS_DUP_TARGET in
pacman.

Also fixes FS#49377.

Suggested-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Michael Straube <michael.straube@posteo.de>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-01-04 11:31:55 +10:00
..
po Add meson.build files to build with meson 2018-11-02 03:16:34 -04:00
.gitignore libalpm: add pkg-config file 2012-04-25 20:02:36 -04:00
add.c Move skipping of duplicate sync/remove targets into libalpm 2019-01-04 11:31:55 +10:00
add.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
alpm.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
alpm.h add specific error for missing gpg support 2018-11-27 22:48:43 +10:00
alpm_list.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
alpm_list.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
backup.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
backup.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
base64.c base64.c: comment out unused variable 2014-01-15 15:54:56 +10:00
base64.h Do not #define _RESERVED_IDENTIFIERS 2016-09-25 18:04:57 +10:00
be_local.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
be_package.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
be_sync.c always allow explicit empty siglevel for sync dbs 2018-11-27 22:48:43 +10:00
conflict.c Remove the last traces of the pacman --force option 2018-08-10 12:38:03 +10:00
conflict.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
db.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
db.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
delta.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
delta.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
deps.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
deps.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
diskspace.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
diskspace.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
dload.c alpm: Fix SIGINT handling re: aborting download 2018-10-17 17:28:32 -07:00
dload.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
error.c add specific error for missing gpg support 2018-11-27 22:48:43 +10:00
filelist.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
filelist.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
graph.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
graph.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
group.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
group.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
handle.c silence warning when built without curl 2019-01-04 11:08:54 +10:00
handle.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
hook.c libalpm: ignore .hook suffix when sorting hooks 2018-08-10 12:37:19 +10:00
hook.h libalpm: ignore .hook suffix when sorting hooks 2018-08-10 12:37:19 +10:00
ini.c run hooks during trans_commit 2015-10-18 10:59:23 +10:00
ini.h run hooks during trans_commit 2015-10-18 10:59:23 +10:00
libalpm.pc.in libalpm.pc: migrate to Requires.private 2018-04-29 21:57:17 +10:00
libarchive-compat.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
log.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
log.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
Makefile.am Remove all modelines from the project 2018-05-14 09:59:15 +10:00
meson.build Add meson.build files to build with meson 2018-11-02 03:16:34 -04:00
package.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
package.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
pkghash.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
pkghash.h Update coyrights for 2018 2018-03-14 13:31:31 +10:00
rawstr.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
remove.c Move skipping of duplicate sync/remove targets into libalpm 2019-01-04 11:31:55 +10:00
remove.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
signing.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
signing.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
sync.c libalpm: process needed before group selection 2018-10-20 12:08:27 -07:00
sync.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
trans.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00
trans.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
util-common.c Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util-common.h Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util.c handle EINTR while polling scripts/hooks 2018-10-21 19:19:48 +10:00
util.h Remove all modelines from the project 2018-05-14 09:59:15 +10:00
version.c Remove all modelines from the project 2018-05-14 09:59:15 +10:00