[packages/google-chrome] Fill state field, too. builder -g before -5 (since -5 only doesn't fetch rpms)

arekm arekm at pld-linux.org
Tue Jul 10 10:50:44 CEST 2012


commit 1f750aa72fc49685d77366033045b8447cf45293
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jul 10 10:50:37 2012 +0200

    Fill state field, too. builder -g before -5 (since -5 only doesn't fetch rpms)

 update-source.sh | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/update-source.sh b/update-source.sh
index 0d96d68..3231ebe 100644
--- a/update-source.sh
+++ b/update-source.sh
@@ -38,8 +38,10 @@ if [ "$oldrev" != "$rev" ]; then
 	echo "Updating $specfile for $ver r$rev"
 	sed -i -e "
 		s/^\(%define[ \t]\+svnrev[ \t]\+\)[0-9]\+\$/\1$rev/
+		s/^\(%define[ \t]\+state[ \t]\+\)[a-z]\+\$/\1$branch/
 		s/^\(Version:[ \t]\+\)[.0-9]\+\$/\1$ver/
 	" $specfile
+	../builder -ncs -g $specfile
 	../builder -ncs -5 $specfile
 else
 	echo "Already up to date"


More information about the pld-cvs-commit mailing list