summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-11-01 21:34:34 +1000
committerAllan McRae <allan@archlinux.org>2014-03-27 15:24:22 +1000
commitee72c016ab316aaca3781d2c45bf0de77fefcf3c (patch)
tree970d0871fd4326d08865ee0bd2d487f649ab6fdf /lib
parentd8f0c3e5b983910dcaef3091ea622ebc3be0f5a0 (diff)
downloadpacman-ee72c016ab316aaca3781d2c45bf0de77fefcf3c.tar.xz
Always supply base name and version info in .PKGFILE if needed
Provide pkgbase information for non-split packages with pkgbase set. Also record the version of the "base" package. This is useful for matching package files to source packages. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_package.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c
index dc2e0720..22751293 100644
--- a/lib/libalpm/be_package.c
+++ b/lib/libalpm/be_package.c
@@ -196,6 +196,8 @@ static int parse_descfile(alpm_handle_t *handle, struct archive *a, alpm_pkg_t *
/* not used atm */
} else if(strcmp(key, "pkgver") == 0) {
STRDUP(newpkg->version, ptr, return -1);
+ } else if(strcmp(key, "basever") == 0) {
+ /* not used atm */
} else if(strcmp(key, "pkgdesc") == 0) {
STRDUP(newpkg->desc, ptr, return -1);
} else if(strcmp(key, "group") == 0) {