remove check for unused ALPM_ERR_PKG_IGNORED
alpm_add_pkg does not ignore packages. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
2e9602716c
commit
f3a280bc67
1 changed files with 2 additions and 3 deletions
|
@ -566,9 +566,8 @@ static int process_pkg(alpm_pkg_t *pkg)
|
||||||
|
|
||||||
if(ret == -1) {
|
if(ret == -1) {
|
||||||
alpm_errno_t err = alpm_errno(config->handle);
|
alpm_errno_t err = alpm_errno(config->handle);
|
||||||
if(err == ALPM_ERR_TRANS_DUP_TARGET
|
if(err == ALPM_ERR_TRANS_DUP_TARGET) {
|
||||||
|| err == ALPM_ERR_PKG_IGNORED) {
|
/* just skip duplicate targets */
|
||||||
/* just skip duplicate or ignored targets */
|
|
||||||
pm_printf(ALPM_LOG_WARNING, _("skipping target: %s\n"), alpm_pkg_get_name(pkg));
|
pm_printf(ALPM_LOG_WARNING, _("skipping target: %s\n"), alpm_pkg_get_name(pkg));
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue