summaryrefslogtreecommitdiffstats
path: root/src/pacman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman.c')
-rw-r--r--src/pacman.c12
1 files changed, 6 insertions, 6 deletions
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;