From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Michael Shigorin To: devel-distro@lists.altlinux.org Date: Mon, 25 Oct 2021 12:13:15 +0300 Message-Id: <20211025091316.7298-3-mike@altlinux.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20211025091316.7298-1-mike@altlinux.org> References: <20211025091316.7298-1-mike@altlinux.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [devel-distro] [PATCH 2/3] reports.mk: don't call rpmquery with empty list X-BeenThere: devel-distro@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Distributions development List-Id: Distributions development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2021 09:14:29 -0000 Archived-At: List-Archive: 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