summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-03-03 18:29:10 -0500
committerAllan McRae <allan@archlinux.org>2014-03-04 14:04:29 +1000
commitf3a280bc67c0f2e7b57f3772599f989b0df4d945 (patch)
tree0ea30851d9f0a4796fbdd5ef56c215538418f641
parent2e9602716c4586ccb1b54eda4718f4dd53399f99 (diff)
downloadpacman-f3a280bc67c0f2e7b57f3772599f989b0df4d945.tar.xz
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>
-rw-r--r--src/pacman/sync.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index fc4baaf8..bf19d576 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -566,9 +566,8 @@ static int process_pkg(alpm_pkg_t *pkg)
if(ret == -1) {
alpm_errno_t err = alpm_errno(config->handle);
- if(err == ALPM_ERR_TRANS_DUP_TARGET
- || err == ALPM_ERR_PKG_IGNORED) {
- /* just skip duplicate or ignored targets */
+ if(err == ALPM_ERR_TRANS_DUP_TARGET) {
+ /* just skip duplicate targets */
pm_printf(ALPM_LOG_WARNING, _("skipping target: %s\n"), alpm_pkg_get_name(pkg));
return 0;
} else {