summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-12-31 17:07:32 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-12-31 17:07:32 +0000
commit146ec957a76e370a020840d209c7077e2606a6ca (patch)
treec6a7c5927f4fa144af0b3c02559969a31bdd8532
parent289b75d576430489815fae564e4d9086ff270cb2 (diff)
downloadpacman-146ec957a76e370a020840d209c7077e2606a6ca.tar.xz
do not consider duplicated targets as an error (patch from VMiklos <vmiklos@frugalware.org>)
-rw-r--r--src/pacman/sync.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index d72200fe..abc35940 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -454,6 +454,10 @@ int pacman_sync(list_t *targets)
if(alpm_trans_addtarget(targ) == -1) {
PM_GRP *grp = NULL;
list_t *j;
+ if(pm_errno == PM_ERR_TRANS_DUP_TARGET) {
+ /* just ignore duplicate targets */
+ continue;
+ }
if(pm_errno != PM_ERR_PKG_NOT_FOUND) {
ERR(NL, "could not add target '%s': %s\n", (char *)i->data, alpm_strerror(pm_errno));
retval = 1;