From e9c6f3b2131217acb4191ed69bfc3f6efa53dfbf Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sat, 19 Apr 2003 22:31:38 +0000 Subject: Imported from pacman-2.4.1.tar.gz --- src/pacman.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pacman.c') diff --git a/src/pacman.c b/src/pacman.c index aa1b7578..efbf2c17 100644 --- a/src/pacman.c +++ b/src/pacman.c @@ -405,12 +405,6 @@ int pacman_sync(pacdb_t *db, PMList *targets) /*fprintf(stderr, "%s: not found in sync db. skipping.", local->name);*/ continue; } - /* check if package should be ignored */ - if(is_in((char*)i->data, pmo_ignorepkg)) { - fprintf(stderr, ":: %s: ignoring package upgrade\n", (char*)i->data); - ignore = 1; - continue; - } /* compare versions and see if we need to upgrade */ cmp = rpmvercmp(local->version, sync->pkg->version); if(cmp > 0) { @@ -422,6 +416,12 @@ int pacman_sync(pacdb_t *db, PMList *targets) } else if(cmp == 0) { /* versions are identical */ continue; + } else if(is_in((char*)i->data, pmo_ignorepkg)) { + /* package should be ignored (IgnorePkg) */ + fprintf(stderr, ":: %s-%s: ignoring package upgrade (%s)\n", + local->name, local->version, sync->pkg->version); + ignore = 1; + continue; } else { PMList *lp = NULL; int found = 0; -- cgit v1.2.3-24-g4f1b