]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
lookup for extra sources in "sources" file auto/th/rpm-build-tools-4.5-7
authorElan Ruusamäe <glen@delfi.ee>
Sun, 2 Dec 2012 22:46:34 +0000 (00:46 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 2 Dec 2012 22:47:15 +0000 (00:47 +0200)
mostly for %patchset_source use

builder.sh

index 020a02f8625d528155f0eb0b3b3bdabe99e3c645..db42d87dbf99ec3699c4c083deb36e5fb0e9173e 100755 (executable)
@@ -1020,15 +1020,16 @@ src_md5() {
        cd $PACKAGE_DIR
        local md5
 
-       if [ -f additional-md5sums ]; then
-               md5=$(grep -s -v '^#' additional-md5sums | \
+       # use "sources" file from package dir, like vim
+       if [ -f sources ]; then
+               md5=$(grep -s -v '^#' sources | \
                grep -E "[      ]$(basename "$1")([     ,]|\$)" | \
                sed -e 's/^\([0-9a-f]\{32\}\).*/\1/' | \
                grep -E '^[0-9a-f]{32}$')
 
                if [ "$md5" ]; then
                        if [ $(echo "$md5" | wc -l) != 1 ] ; then
-                               echo "$SPECFILE: more then one entry in additional-md5sums for $1" 1>&2
+                               echo "$SPECFILE: more then one entry in sources for $1" 1>&2
                        fi
                        echo "$md5" | tail -n 1
                        return
This page took 0.038948 seconds and 4 git commands to generate.