X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm-build-tools.git;a=blobdiff_plain;f=builder.sh;h=db42d87dbf99ec3699c4c083deb36e5fb0e9173e;hp=020a02f8625d528155f0eb0b3b3bdabe99e3c645;hb=edcaeac27f9c3e658c3102367395e6e9c60b3e8f;hpb=7bf3bf31252ec8b37480fcf0e98354016d91e7c7 diff --git a/builder.sh b/builder.sh index 020a02f..db42d87 100755 --- a/builder.sh +++ b/builder.sh @@ -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