mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
fix: one can't add a package twice in transaction targets list
This commit is contained in:
parent
4a5c607258
commit
ff16088b27
@ -100,6 +100,9 @@ int add_loadtarget(pmdb_t *db, pmtrans_t *trans, char *name)
|
||||
_alpm_log(PM_LOG_WARNING, "replacing older version of %s in target list", pkg->name);
|
||||
FREEPKG(j->data);
|
||||
j->data = info;
|
||||
} else {
|
||||
pm_errno = PM_ERR_TRANS_DUP_TARGET;
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user