do not consider duplicated targets as an error (patch from VMiklos <vmiklos@frugalware.org>)
This commit is contained in:
parent
289b75d576
commit
146ec957a7
1 changed files with 4 additions and 0 deletions
|
@ -454,6 +454,10 @@ int pacman_sync(list_t *targets)
|
||||||
if(alpm_trans_addtarget(targ) == -1) {
|
if(alpm_trans_addtarget(targ) == -1) {
|
||||||
PM_GRP *grp = NULL;
|
PM_GRP *grp = NULL;
|
||||||
list_t *j;
|
list_t *j;
|
||||||
|
if(pm_errno == PM_ERR_TRANS_DUP_TARGET) {
|
||||||
|
/* just ignore duplicate targets */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(pm_errno != PM_ERR_PKG_NOT_FOUND) {
|
if(pm_errno != PM_ERR_PKG_NOT_FOUND) {
|
||||||
ERR(NL, "could not add target '%s': %s\n", (char *)i->data, alpm_strerror(pm_errno));
|
ERR(NL, "could not add target '%s': %s\n", (char *)i->data, alpm_strerror(pm_errno));
|
||||||
retval = 1;
|
retval = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue