38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
|
From 3e0419ebc11494d9848decfdfb4909cbce9448b7 Mon Sep 17 00:00:00 2001
|
||
|
From: Mark Wielaard <mark@klomp.org>
|
||
|
Date: Wed, 28 Jun 2017 14:21:32 +0200
|
||
|
Subject: [PATCH 33/49] find-debuginfo.sh: Use 'return', not 'continue', to
|
||
|
break out do_file().
|
||
|
|
||
|
commit 038bfe "Split directory traversal and debuginfo extraction"
|
||
|
put the core of a while loop into its own function 'do_file()'.
|
||
|
That means that instead of using 'continue' to break out early it now
|
||
|
needs to use 'return'. Otherwise the script will give errors like:
|
||
|
|
||
|
continue: only meaningful in a `for', `while', or `until' loop
|
||
|
|
||
|
https://bugzilla.redhat.com/show_bug.cgi?id=1465170
|
||
|
|
||
|
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
||
|
(cherry picked from commit a08e154459d160ff9a9a5576266e685ab85bfc5d)
|
||
|
---
|
||
|
scripts/find-debuginfo.sh | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
|
||
|
index 097b749bb..c435a02e4 100644
|
||
|
--- a/scripts/find-debuginfo.sh
|
||
|
+++ b/scripts/find-debuginfo.sh
|
||
|
@@ -351,7 +351,7 @@ do_file()
|
||
|
# just has its file names collected and adjusted.
|
||
|
case "$dn" in
|
||
|
/usr/lib/debug/*)
|
||
|
- continue ;;
|
||
|
+ return ;;
|
||
|
esac
|
||
|
|
||
|
mkdir -p "${debugdn}"
|
||
|
--
|
||
|
2.13.2
|
||
|
|