summaryrefslogtreecommitdiffstats
path: root/src/pacman.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-04-20 00:31:38 +0200
committerJudd Vinet <judd@archlinux.org>2003-04-20 00:31:38 +0200
commite9c6f3b2131217acb4191ed69bfc3f6efa53dfbf (patch)
tree60034729379342ec0301a575a09c62dd4f3b0c5b /src/pacman.c
parent37e13ea2d0c0df564f00278ac68bf8a1e584bfd9 (diff)
downloadpacman-e9c6f3b2131217acb4191ed69bfc3f6efa53dfbf.tar.gz
pacman-e9c6f3b2131217acb4191ed69bfc3f6efa53dfbf.tar.xz
Imported from pacman-2.4.1.tar.gz
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;