void-packages/srcpkgs/xbps/patches/0002-xbps-query-fix-regress...

27 lines
914 B
Diff
Raw Normal View History

2013-07-07 10:03:56 +02:00
From 6358cf43fc3d9ba8d9f9ac98078dd7b8f70fe31c Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
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