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