[packages/rpm-build-tools] lookup for extra sources in "sources" file
glen
glen at pld-linux.org
Mon Dec 3 10:13:10 CET 2012
commit edcaeac27f9c3e658c3102367395e6e9c60b3e8f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Dec 3 00:46:34 2012 +0200
lookup for extra sources in "sources" file
mostly for %patchset_source use
builder.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/edcaeac27f9c3e658c3102367395e6e9c60b3e8f
More information about the pld-cvs-commit
mailing list