diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-22 15:11:38 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-12-24 11:19:30 +1000 |
commit | 9f527d2de453b542293e24d85ee894fa6452259a (patch) | |
tree | 0718d9cfc13cf3b81d02b6b5e8e94df49aae3f8c /lib/libalpm/be_package.c | |
parent | fda599df3773955aa2f95a842649902e41f4e0bc (diff) | |
download | pacman-9f527d2de453b542293e24d85ee894fa6452259a.tar.xz |
libalpm: Parse and write PKGBASEs
This commit adds support to libalpm to parse the pkgbase present in
packages .PKGINFO files, writing the PKGBASE to the %BASE% section of
the local DBs desc files and for parsing it again when loading the local
DB
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_package.c')
-rw-r--r-- | lib/libalpm/be_package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index 5617f4fa..2d42465f 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -193,7 +193,7 @@ static int parse_descfile(alpm_handle_t *handle, struct archive *a, alpm_pkg_t * STRDUP(newpkg->name, ptr, return -1); newpkg->name_hash = _alpm_hash_sdbm(newpkg->name); } else if(strcmp(key, "pkgbase") == 0) { - /* not used atm */ + STRDUP(newpkg->base, ptr, return -1); } else if(strcmp(key, "pkgver") == 0) { STRDUP(newpkg->version, ptr, return -1); } else if(strcmp(key, "basever") == 0) { |