index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2008-08-17 18:32:39 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-23 09:44:47 -0500 |
commit | 8146f6f1c6bbd7bf642cb263ca1658234fb7e48a (patch) | |
tree | 98af0c1a3b51f99825ba09146e68817d9c0a153e /lib/libalpm/package.c | |
parent | adc4078b8743a1437d44557dafea8619b1ce0fb1 (diff) |
-rw-r--r-- | lib/libalpm/package.c | 9 |
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index eaef688d..13020041 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -423,6 +423,15 @@ alpm_list_t SYMEXPORT *alpm_pkg_get_backup(pmpkg_t *pkg) return pkg->backup; } +pmdb_t SYMEXPORT *alpm_pkg_get_db(pmpkg_t *pkg) +{ + /* Sanity checks */ + ASSERT(pkg != NULL, return(NULL)); + ASSERT(pkg->origin == PKG_FROM_CACHE, return(NULL)); + + return(pkg->origin_data.db); +} + /** * Open a package changelog for reading. Similar to fopen in functionality, * except that the returned 'file stream' could really be from an archive |