Commit 51ae114e authored by Michael Shigorin's avatar Michael Shigorin Committed by Anton Midyukov

reports.mk: don't call rpmquery with empty list

xargs -r is a good habit usually. Fixes: c7717836
parent d212dcab
...@@ -111,7 +111,7 @@ reports/packages: reports/prep ...@@ -111,7 +111,7 @@ reports/packages: reports/prep
cut -d' ' -f 1 | tr -d "'"'`' | \ cut -d' ' -f 1 | tr -d "'"'`' | \
tee /dev/stderr 2> >(sed 's,^.*/,,' | \ tee /dev/stderr 2> >(sed 's,^.*/,,' | \
sort -u > "$(REPORTDIR)/list-rpms.txt") | \ 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" sort -u > "$(REPORTDIR)/list-srpms.txt"
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment