summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}