]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- sort SOURCES/PATCHES by their number from spec
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 8 Dec 2008 12:34:48 +0000 (12:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.567

builder.sh

index 84868f1f7d1c51446f9ebe6404eee05ce27eb1ab..3f16eccc3f4eab8dcbfce8214b022816824efe9f 100644 (file)
@@ -560,14 +560,14 @@ parse_spec()
        cache_rpm_dump
 
        if [ "$NOSRCS" != "yes" ]; then
-               SOURCES=$(rpm_dump | awk '/SOURCEURL[0-9]+/ {print $3}')
+               SOURCES=$(rpm_dump | awk '$2 ~ /^SOURCEURL[0-9]+/ {print substr($2, length("SOURCEURL") + 1), $3}' | LC_ALL=C sort -n | awk '{print $2}')
        fi
 
        if (rpm_dump | grep -qEi ":.*nosource.*1"); then
                FAIL_IF_NO_SOURCES="no"
        fi
 
-       PATCHES=$(rpm_dump | awk '/PATCHURL[0-9]+/ {print $3}')
+       PATCHES=$(rpm_dump | awk '$2 ~ /^PATCHURL[0-9]+/ {print substr($2, length("PATCHURL") + 1), $3}' | LC_ALL=C sort -n | awk '{print $2}')
        ICONS=$(awk '/^Icon:/ {print $2}' ${SPECFILE})
        PACKAGE_NAME=$(rpm_dump | awk '$2 == "PACKAGE_NAME" { print $3; exit}')
        PACKAGE_VERSION=$(rpm_dump | awk '$2 == "PACKAGE_VERSION" { print $3; exit}')
This page took 0.04373 seconds and 4 git commands to generate.