diff options
author | Dan McGee <dan@archlinux.org> | 2007-03-01 19:07:38 +0000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-03-01 19:07:38 +0000 |
commit | efca1cc0106fd4b1eea795b6ff8ae208e1196042 (patch) | |
tree | 6fe6a4b5689a5d239ffb568a673c17b6cc66caf7 /lib/libalpm/cache.c | |
parent | ca139e985017652fa1d25b2ff8ac4a8ebbe4c648 (diff) | |
download | pacman-efca1cc0106fd4b1eea795b6ff8ae208e1196042.tar.xz |
* Modified values of INFRQ_* options so we start at 0x01 and not 0x00. This
allows for the same bit operators to be used across the board on pkg_get
operations.
* Changed name of INFRQ_NONE -> INFRQ_BASE to more clearly reflect what it
does (loads pkg name and version).
* Added a few missing things on package functions, such as SYMEXPORT and
ALPM_LOG_FUNC.
* Slight updates to pmenv to print 'pass' and 'fail' instead of 'passed' and
'failed'. Keeps output a bit more concise.
* Fixed a doxygen comment spelling error. :P
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r-- | lib/libalpm/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c index 8e043096..74299061 100644 --- a/lib/libalpm/cache.c +++ b/lib/libalpm/cache.c @@ -123,7 +123,7 @@ int _alpm_db_ensure_pkgcache(pmdb_t *db, pmdbinfrq_t infolevel) alpm_list_t *p; for(p = db->pkgcache; p; p = p->next) { pmpkg_t *pkg = (pmpkg_t *)p->data; - if(infolevel != INFRQ_NONE && !(pkg->infolevel & infolevel)) { + if(infolevel != INFRQ_BASE && !(pkg->infolevel & infolevel)) { if(_alpm_db_read(db, pkg, infolevel) == -1) { /* TODO should we actually remove from the filesystem here as well? */ _alpm_db_remove_pkgfromcache(db, pkg); @@ -195,7 +195,7 @@ pmpkg_t *_alpm_db_get_pkgfromcache(pmdb_t *db, const char *target) return(NULL); } - alpm_list_t *pkgcache = _alpm_db_get_pkgcache(db, INFRQ_NONE); + alpm_list_t *pkgcache = _alpm_db_get_pkgcache(db, INFRQ_BASE); if(!pkgcache) { _alpm_log(PM_LOG_DEBUG, _("error: failed to get '%s' from NULL pkgcache"), target); return(NULL); |