summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-01-29 17:29:49 -0500
committerDave Reisner <d@falconindy.com>2011-01-29 17:29:49 -0500
commit349fe9dff7726c7f3831406a16d63c040458b916 (patch)
treeb08a9ffda14fda260ccfbb72c690e9a78bd4610d
parent62dc3d821fcf08dcb4dc9ab11664ddd3b71903dd (diff)
downloadexpac-349fe9dff7726c7f3831406a16d63c040458b916.tar.xz
avoid use of alpm_db_register_local() for recent libalpm
-rw-r--r--expac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/expac.c b/expac.c
index cdd1a1c..e66f456 100644
--- a/expac.c
+++ b/expac.c
@@ -106,7 +106,11 @@ static int alpm_init() {
return(ret);
}
+#ifdef _HAVE_ALPM_DB_REGISTER_LOCAL
db_local = alpm_db_register_local();
+#else
+ db_local = alpm_option_get_localdb();
+#endif
if (!db_local) {
return(1);
}