[packages/rpmlint] workaround rpm5 rpm -qf /nonsense
glen
glen at pld-linux.org
Thu Sep 18 17:51:23 CEST 2014
commit 07c5699d9caf0b1643d88624724c29988d960f5c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Sep 18 18:50:47 2014 +0300
workaround rpm5 rpm -qf /nonsense
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2014-September/024022.html
rpmlint.spec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/rpmlint.spec b/rpmlint.spec
index 2585c60..ddf7260 100644
--- a/rpmlint.spec
+++ b/rpmlint.spec
@@ -84,7 +84,9 @@ touch __init__.py
%build
# Create GROUPS for -groups.patch
-rpm --qf '%{_docdir}/%{N}-%{V}/groups.gz' -q rpm | xargs gzip -dc | awk '/^[A-Z].*/ { print }' > GROUPS
+rpmnv=$(rpm -q rpm --qf '%{N}-%{V}')
+gzip -dc "%{_docdir}/$rpmnv/groups.gz" | awk '/^[A-Z].*/ { print }' > GROUPS
+test -s GROUPS
%{__make} \
bash_compdir=%{bash_compdir} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpmlint.git/commitdiff/07c5699d9caf0b1643d88624724c29988d960f5c
More information about the pld-cvs-commit
mailing list