[packages/rpm-build-tools] builder: allow also 'MD5 *FILENAME' format (binary flag) in 'sources' file

glen glen at pld-linux.org
Mon Mar 11 16:51:24 CET 2013


commit 5fe6b5d9f735f219f6e3b0c65ecc36aab6afa4a8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Mar 11 17:50:51 2013 +0200

    builder: allow also 'MD5 *FILENAME' format (binary flag) in 'sources' file

 builder.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/builder.sh b/builder.sh
index 846e4e7..d11207f 100755
--- a/builder.sh
+++ b/builder.sh
@@ -39,7 +39,7 @@ RCSID='$Id: builder,v 1.645 2011/02/13 17:54:10 glen Exp $' r=${RCSID#* * } rev=
 VERSION="v0.35/$rev"
 VERSIONSTRING="\
 Build package utility from PLD Linux Packages repository
-$VERSION (C) 1999-2012 Free Penguins".
+$VERSION (C) 1999-2013 Free Penguins".
 
 CLEAN_PATH="/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin"
 
@@ -1052,7 +1052,7 @@ src_md5() {
 	# use "sources" file from package dir, like vim
 	if [ -f sources ]; then
 		md5=$(grep -s -v '^#' sources | \
-		grep -E "[ 	]$(basename "$1")([ 	,]|\$)" | \
+		grep -E "[ 	*]$(basename "$1")([ 	,]|\$)" | \
 		sed -e 's/^\([0-9a-f]\{32\}\).*/\1/' | \
 		grep -E '^[0-9a-f]{32}$')
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/5fe6b5d9f735f219f6e3b0c65ecc36aab6afa4a8



More information about the pld-cvs-commit mailing list