diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-23 09:00:06 +0100 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-23 09:00:06 +0100 |
commit | 78ecf9a12bec098709c924552ee4f2b16c34c34a (patch) | |
tree | 5f82795e6aeab36ed75530e05fbfbf0954f9e5d9 /lib | |
parent | faad70aa54df518282815e5fd09ddfb004bbeab5 (diff) | |
download | pacman-78ecf9a12bec098709c924552ee4f2b16c34c34a.tar.gz pacman-78ecf9a12bec098709c924552ee4f2b16c34c34a.tar.xz |
* The info level for this was wrong, causing replacements to not really work
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/package.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 2f8ffa81..72d2b751 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -861,8 +861,8 @@ alpm_list_t SYMEXPORT *alpm_pkg_get_replaces(pmpkg_t *pkg) ASSERT(handle != NULL, return(NULL)); ASSERT(pkg != NULL, return(NULL)); - if(pkg->origin == PKG_FROM_CACHE && !(pkg->infolevel & INFRQ_DEPENDS)) { - _alpm_db_read(pkg->data, pkg, INFRQ_DEPENDS); + if(pkg->origin == PKG_FROM_CACHE && !(pkg->infolevel & INFRQ_DESC)) { + _alpm_db_read(pkg->data, pkg, INFRQ_DESC); } return pkg->replaces; } |