[pacman-dev] [PATCH] remove check for unused ALPM_ERR_PKG_IGNORED
Andrew Gregory
andrew.gregory.8 at gmail.com
Mon Mar 3 18:29:10 EST 2014
alpm_add_pkg does not ignore packages.
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
src/pacman/sync.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index fc4baaf..bf19d57 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 {
--
1.9.0
More information about the pacman-dev
mailing list