]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- take first BuildArch (museek+)
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 5 Sep 2009 17:13:56 +0000 (17:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.591

builder.sh

index 96758b75a1a5863c19b3d235727d511b775379a7..e7024815a66294faa0d3bd37f64f0a55aa4461c3 100644 (file)
@@ -411,7 +411,7 @@ update_shell_title() {
 # set TARGET from BuildArch: from SPECFILE
 set_spec_target() {
        if [ -n "$SPECFILE" ] && [ -z "$TARGET" ]; then
-               tmp=$(awk '/^BuildArch:/ { print $NF}' $ASSUMED_NAME/$SPECFILE)
+               tmp=$(awk '/^BuildArch:/ { print $NF; exit }' $ASSUMED_NAME/$SPECFILE)
                if [ "$tmp" ]; then
                                target_platform=$(rpm -E '%{_target_vendor}-%{_target_os}%{?_gnu}')
                                TARGET="$tmp"
This page took 0.037579 seconds and 4 git commands to generate.