index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-03-12 03:02:57 +0000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-03-12 03:02:57 +0000 |
commit | ba1806f5aca616390355a4258f7edb43ab8b0b66 (patch) | |
tree | 9731fe669fd233406a3f118e7e5a3c69a427e13a /lib/libalpm/be_files.c | |
parent | 9ba23c8248eac4406b374f25feafcad873db89be (diff) |
-rw-r--r-- | lib/libalpm/be_files.c | 7 |
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 6e2f4c4f..30f6f905 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -227,7 +227,12 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) return(-1); } - if(info->infolevel & inforeq) { + /* bitmask logic here: + * infolevel: 00001111 + * inforeq: 00010100 + * & result: 00000100 + * == to inforeq? nope, we need to load more info. */ + if((info->infolevel & inforeq) == inforeq) { /* already loaded this info, do nothing */ return(0); } |