summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-09-05 20:36:37 +0200
committerMichał Górny <mgorny@gentoo.org>2023-09-05 21:58:30 +0200
commit7be943845774aa9e052e2d16241991a3abb9d8d6 (patch)
tree499e04c13aaf4e5005142b1eb225c3de65da2273 /eclass/llvm.org.eclass
parentdev-libs/libclc: Bump to 17.0.0_rc4 (diff)
downloadgentoo-7be943845774aa9e052e2d16241991a3abb9d8d6.tar.gz
gentoo-7be943845774aa9e052e2d16241991a3abb9d8d6.tar.bz2
gentoo-7be943845774aa9e052e2d16241991a3abb9d8d6.zip
llvm.org.eclass: Fix handling patchset with only one component
Fix the irrelevant patch removal logic not to invoke rm(1) with no arguments if the patchset contains only patches for the current component. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/llvm.org.eclass')
-rw-r--r--eclass/llvm.org.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass
index 7d4765b31ac8..ba75866507e2 100644
--- a/eclass/llvm.org.eclass
+++ b/eclass/llvm.org.eclass
@@ -378,7 +378,7 @@ llvm.org_src_unpack() {
local IFS='|'
grep -E -r -L "^Gentoo-Component:.*(${components[*]})" \
"${WORKDIR}/llvm-gentoo-patchset-${LLVM_PATCHSET}" |
- xargs rm
+ xargs -r rm
local status=( "${PIPESTATUS[@]}" )
[[ ${status[1]} -ne 0 ]] && die "rm failed"
[[ ${status[0]} -ne 0 ]] &&