31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
|
From a20edbb561f74ba608c0aa36be637e7245e596b5 Mon Sep 17 00:00:00 2001
|
||
|
From: ggardet <guillaume.gardet@opensuse.org>
|
||
|
Date: Fri, 9 Oct 2020 13:10:09 +0200
|
||
|
Subject: [PATCH] Do not fail if there is no "$temp"/res.* file
|
||
|
|
||
|
find-debuginfo is multi-threaded and rpm runs
|
||
|
scripts usually with "-e" to abort on error.
|
||
|
If the debug-splitting tool fails, that job will abort.
|
||
|
But if you have X files that are problematic in the tree,
|
||
|
and you have X or less jobs, find-debuginfo will abort
|
||
|
as no single res.$number has been written.
|
||
|
But if you have more than X jobs, the build will succeed,
|
||
|
which makes the whole process random.
|
||
|
This commit remove this randomness.
|
||
|
---
|
||
|
scripts/find-debuginfo.sh | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
|
||
|
index 081e24148..e0c36ebb6 100755
|
||
|
--- a/scripts/find-debuginfo.sh
|
||
|
+++ b/scripts/find-debuginfo.sh
|
||
|
@@ -498,6 +498,7 @@ else
|
||
|
wait
|
||
|
)
|
||
|
for f in "$temp"/res.*; do
|
||
|
+ test -f "$f" || continue
|
||
|
res=$(< "$f")
|
||
|
if [ "$res" != "0" ]; then
|
||
|
exit 1
|