[pacman-dev] INFRQ_* confusion

Nagy Gabor ngaba at petra.hos.u-szeged.hu
Wed Feb 28 14:12:13 EST 2007


Hi!

The constants defined in db.h are not usual: First, it seems logical,
that NONE==0x0, ALL=0xFF. However you may forget about this, like
be_files.c (row 222):
"if(info->infolevel & inforeq) {
	/* already loaded this info, do nothing */
		return(0);
	}"
As I see, the author thinks of inforeq as exactly one bit is set to 1.
However, if inforeq=0xFF and infolevel!=0, this is a bug. And if
inforeq=0, this condition is never true.

Bye.






More information about the pacman-dev mailing list