1
0
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:
Aurelien Foret 2005-03-24 21:49:18 +00:00
parent 4a5c607258
commit ff16088b27

View File

@ -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;
}
}
}