[devel-distro] [PATCH 2/3] reports.mk: don't call rpmquery with empty list

Michael Shigorin mike at altlinux.org
Mon Oct 25 12:13:15 MSK 2021


xargs -r is a good habit usually.

Fixes: c771783654d9477c4798099db46687834200df5c
---
 reports.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reports.mk b/reports.mk
index 60ccfec16..585d998a5 100644
--- a/reports.mk
+++ b/reports.mk
@@ -108,7 +108,7 @@ reports/packages: reports/prep
 		cut -d' ' -f 1 | tr -d "'"'`' | \
 		tee /dev/stderr 2> >(sed 's,^.*/,,' | \
 			sort -u > "$(REPORTDIR)/list-rpms.txt") | \
-		xargs rpm -qp --queryformat '%{sourcerpm}\n' | \
+		xargs -r rpm -qp --queryformat '%{sourcerpm}\n' | \
 		sort -u > "$(REPORTDIR)/list-srpms.txt"
 
 else
-- 
2.25.4



More information about the devel-distro mailing list