diff options
author | Dave Reisner <d@falconindy.com> | 2011-01-29 17:29:49 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2011-01-29 17:29:49 -0500 |
commit | 349fe9dff7726c7f3831406a16d63c040458b916 (patch) | |
tree | b08a9ffda14fda260ccfbb72c690e9a78bd4610d | |
parent | 62dc3d821fcf08dcb4dc9ab11664ddd3b71903dd (diff) | |
download | expac-349fe9dff7726c7f3831406a16d63c040458b916.tar.xz |
avoid use of alpm_db_register_local() for recent libalpm
-rw-r--r-- | expac.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |