From 349fe9dff7726c7f3831406a16d63c040458b916 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 29 Jan 2011 17:29:49 -0500 Subject: avoid use of alpm_db_register_local() for recent libalpm --- expac.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.3-70-g09d2