summaryrefslogtreecommitdiff
path: root/lib/libalpm/provide.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-01 07:03:05 +0000
committerAaron Griffin <aaron@archlinux.org>2007-03-01 07:03:05 +0000
commit3ebd125e1ad9abbf5fbcb4457adb8288750b379e (patch)
tree04e93b6896fd61d86bca280af0ac8bb5448c08a2 /lib/libalpm/provide.c
parent6075b677fcdeccf2b39ebbd4a089b4ebe016a62e (diff)
downloadpacman-3ebd125e1ad9abbf5fbcb4457adb8288750b379e.tar.xz
* Switched some functions to alpm_pkg_get_* usage as I came across them
* Added some provision switching hackery. This could probably use some refactoring,.. it solves the following case: pkg1 and pkg2 provide 'foo' and are both installed pkg3 depends on 'foo' and so lists 'pkg1' in the REQUIREDBY db section pkg1 is upgraded and no longer provides 'foo' ** This code ensures that the REQUIREDBY of pkg3 is updated to require pkg2 now instead of pkg1
Diffstat (limited to 'lib/libalpm/provide.c')
-rw-r--r--lib/libalpm/provide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/provide.c b/lib/libalpm/provide.c
index dce1c267..a01f059a 100644
--- a/lib/libalpm/provide.c
+++ b/lib/libalpm/provide.c
@@ -45,7 +45,7 @@ alpm_list_t *_alpm_db_whatprovides(pmdb_t *db, const char *package)
for(lp = _alpm_db_get_pkgcache(db, INFRQ_DEPENDS); lp; lp = lp->next) {
pmpkg_t *info = lp->data;
- if(alpm_list_find_str(info->provides, package)) {
+ if(alpm_list_find_str(alpm_pkg_get_provides(info), package)) {
pkgs = alpm_list_add(pkgs, info);
}
}