Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-09 15:23:24 -0500
committerDan McGee <dan@archlinux.org>2011-06-14 08:39:02 -0500
commitba63e31cc7ecc9e7fccb68e9fa4e09c90a8d5c66 (patch)
tree2989f068ce3104646c2dbdc616b47ca89d52cd98 /lib/libalpm/package.c
parent0074cadb3bfdf5d89065e69eb93788ebcc9a6b58 (diff)
Small handle related cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 61194e91..014dedce 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -341,8 +341,7 @@ alpm_list_t SYMEXPORT *alpm_pkg_compute_requiredby(pmpkg_t *pkg)
if(pkg->origin == PKG_FROM_FILE) {
/* The sane option; search locally for things that require this. */
- db = alpm_option_get_localdb(pkg->handle);
- find_requiredby(pkg, db, &reqs);
+ find_requiredby(pkg, pkg->handle->db_local, &reqs);
} else {
/* We have a DB package. if it is a local package, then we should
* only search the local DB; else search all known sync databases. */