commit 8c91ee46530214e6502eea56fa05b31d0fee1874
Author: Elan Ruusamäe <[email protected]>
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")
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to