From ee72c016ab316aaca3781d2c45bf0de77fefcf3c Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 1 Nov 2013 21:34:34 +1000 Subject: 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 --- lib/libalpm/be_package.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libalpm') 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) { -- cgit v1.2.3-70-g09d2