[packages/rpm-build-tools/full-changelog] builder: use locals

glen glen at pld-linux.org
Fri Aug 17 16:57:29 CEST 2012


commit 8c91ee46530214e6502eea56fa05b31d0fee1874
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Aug 17 17:57:24 2012 +0300

    builder: use locals

 builder.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/builder.sh b/builder.sh
index c67cad4..997c71d 100755
--- a/builder.sh
+++ b/builder.sh
@@ -534,9 +534,9 @@ update_shell_title() {
 # set TARGET from BuildArch: from SPECFILE
 set_spec_target() {
 	if [ -n "$SPECFILE" ] && [ -z "$TARGET" ]; then
-		tmp=$(awk '/^BuildArch:/ { print $NF; exit }' $ASSUMED_NAME/$SPECFILE)
+		local tmp=$(awk '/^BuildArch:/ { print $NF; exit }' $ASSUMED_NAME/$SPECFILE)
 		if [ "$tmp" ]; then
-				target_platform=$(rpm -E '%{_target_vendor}-%{_target_os}%{?_gnu}')
+				local target_platform=$(rpm -E '%{_target_vendor}-%{_target_os}%{?_gnu}')
 				TARGET="$tmp"
 				case "$RPMBUILD" in
 				"rpmbuild")


More information about the pld-cvs-commit mailing list