summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-23 09:00:06 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-23 09:00:06 +0100
commit78ecf9a12bec098709c924552ee4f2b16c34c34a (patch)
tree5f82795e6aeab36ed75530e05fbfbf0954f9e5d9 /lib
parentfaad70aa54df518282815e5fd09ddfb004bbeab5 (diff)
downloadpacman-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.c4
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;
}