summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2024-08-12 18:29:26 +0900
committerYoungjae Cho <y0.cho@samsung.com>2024-08-12 18:30:48 +0900
commitb21d106504f8b94f8be4b5bb89a5d2eeeaa3547a (patch)
treebf6444cf65a609a7a58c37eff989a3d56a134324
parentc434d0b89879db6aa85a45f8bc5f57bead0fe8b5 (diff)
downloadrootstrap-b21d106504f8b94f8be4b5bb89a5d2eeeaa3547a.tar.gz
rootstrap-b21d106504f8b94f8be4b5bb89a5d2eeeaa3547a.tar.bz2
rootstrap-b21d106504f8b94f8be4b5bb89a5d2eeeaa3547a.zip
checker: Fix to skip empty line of rpmspec result
Change-Id: Ic14319f594b5330735995fe06290fc73b9620fd7 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r--packaging/hal-rootstrap-checker.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/hal-rootstrap-checker.sh b/packaging/hal-rootstrap-checker.sh
index 4a5ecd5..f4d52de 100644
--- a/packaging/hal-rootstrap-checker.sh
+++ b/packaging/hal-rootstrap-checker.sh
@@ -169,12 +169,18 @@ fi
# Parse specfile: Get BuildRequires
SPECFILE_BUILDREQUIRES=""
while read -r LINE; do
+ if [[ -z $LINE ]]; then
+ continue
+ fi
SPECFILE_BUILDREQUIRES+="$LINE$IFS"
done <<< $(rpmspec -q --buildrequires $SPECFILE)
# Parse specfile: Get Requires
SPECFILE_REQUIRES=""
while read -r LINE; do
+ if [[ -z $LINE ]]; then
+ continue
+ fi
SPECFILE_REQUIRES+="$LINE$IFS"
done <<< $(rpmspec -q --queryformat "[%{REQUIRES}\n]" $SPECFILE)