From fc5db68677884b636e0c43631c17c297cd57edd4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 7 Jul 2013 10:03:56 +0200 Subject: [PATCH] xbps: fix regression in xbps-query -R. --- ...egression-in-R-also-print-repository.patch | 26 +++++++++++++++++++ srcpkgs/xbps/template | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xbps/patches/0002-xbps-query-fix-regression-in-R-also-print-repository.patch diff --git a/srcpkgs/xbps/patches/0002-xbps-query-fix-regression-in-R-also-print-repository.patch b/srcpkgs/xbps/patches/0002-xbps-query-fix-regression-in-R-also-print-repository.patch new file mode 100644 index 00000000000..1b3444209b8 --- /dev/null +++ b/srcpkgs/xbps/patches/0002-xbps-query-fix-regression-in-R-also-print-repository.patch @@ -0,0 +1,26 @@ +From 6358cf43fc3d9ba8d9f9ac98078dd7b8f70fe31c Mon Sep 17 00:00:00 2001 +From: Juan RP +Date: Sun, 7 Jul 2013 09:59:25 +0200 +Subject: [PATCH 1/2] xbps-query: fix regression in -R, also print repository + string object. + +--- + bin/xbps-query/show-info-files.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/bin/xbps-query/show-info-files.c b/bin/xbps-query/show-info-files.c +index 244db86..4c09fbf 100644 +--- bin/xbps-query/show-info-files.c ++++ bin/xbps-query/show-info-files.c +@@ -302,6 +302,8 @@ repo_show_pkg_info(struct xbps_handle *xhp, + if ((bpkgd = xbps_repo_get_pkg_plist(xhp, ipkgd, "./props.plist")) == NULL) + return errno; + ++ xbps_dictionary_set(bpkgd, "repository", ++ xbps_dictionary_get(ipkgd, "repository")); + xbps_dictionary_set(bpkgd, "filename-sha256", + xbps_dictionary_get(ipkgd, "filename-sha256")); + xbps_dictionary_set(bpkgd, "filename-size", +-- +1.8.3.2 + diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index 9b37e3fb916..fac828f68fc 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.25 -revision=2 +revision=3 build_style=configure configure_args="--prefix=/usr --sysconfdir=/etc --enable-static --enable-debug --enable-tests" hostmakedepends="which pkg-config"