fix: one can't add a package twice in transaction targets list
This commit is contained in:
parent
4a5c607258
commit
ff16088b27
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
_alpm_log(PM_LOG_WARNING, "replacing older version of %s in target list", pkg->name);
|
||||||
FREEPKG(j->data);
|
FREEPKG(j->data);
|
||||||
j->data = info;
|
j->data = info;
|
||||||
|
} else {
|
||||||
|
pm_errno = PM_ERR_TRANS_DUP_TARGET;
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue