[pacman-dev] [patch] inforeq bugfix
Nagy Gabor
ngaba at petra.hos.u-szeged.hu
Fri Mar 9 19:07:52 EST 2007
Hi!
We talked about this problem, so here is my patch:
db.h.diff:
==========
--- db.h.old 2007-03-10 01:00:38.000000000 +0100
+++ db.h 2007-03-10 01:02:04.000000000 +0100
@@ -33,7 +33,7 @@
INFRQ_DEPENDS = 0x04,
INFRQ_FILES = 0x08,
INFRQ_SCRIPTLET = 0x10,
- INFRQ_ALL = 0xFF
+ INFRQ_ALL = 0x1F
} pmdbinfrq_t;
/* Database */
be_files.c.diff:
================
--- be_files.c.old 2007-03-10 01:00:38.000000000 +0100
+++ be_files.c 2007-03-10 00:58:38.000000000 +0100
@@ -227,7 +227,7 @@
return(-1);
}
- if(info->infolevel & inforeq) {
+ if(!(~(info->infolevel) & inforeq & INFRQ_ALL)) {
/* already loaded this info, do nothing */
return(0);
}
=================
Bye, Nagy Gabor
More information about the pacman-dev
mailing list