index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-02-28 10:46:00 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-28 10:46:00 -0600 |
commit | f45369800abdeb54847d9ea6a326eb613f30cd3b (patch) | |
tree | 41ed4f7ae8c9fa18ed60a5b5ca1ccf6d4540bc62 /lib/libalpm/db.c | |
parent | 5ea4706f57e15de23a5fd36eff3bc4619aeac224 (diff) |
-rw-r--r-- | lib/libalpm/db.c | 8 |
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 2a8db8e0..fb64faed 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -405,6 +405,14 @@ const char *_alpm_db_path(pmdb_t *db) return(db->_path); } +int _alpm_db_version(pmdb_t *db) +{ + if(!db) { + return(-1); + } + return(db->ops->version(db)); +} + int _alpm_db_cmp(const void *d1, const void *d2) { pmdb_t *db1 = (pmdb_t *)d1; |