packages: chromium-browser/update-source.sh - always rel 1 on new version u...

glen glen at pld-linux.org
Mon Oct 17 09:00:35 CEST 2011


Author: glen                         Date: Mon Oct 17 07:00:35 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- always rel 1 on new version update

---- Files affected:
packages/chromium-browser:
   update-source.sh (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: packages/chromium-browser/update-source.sh
diff -u packages/chromium-browser/update-source.sh:1.23 packages/chromium-browser/update-source.sh:1.24
--- packages/chromium-browser/update-source.sh:1.23	Sat Oct  8 21:30:25 2011
+++ packages/chromium-browser/update-source.sh	Mon Oct 17 09:00:30 2011
@@ -24,7 +24,7 @@
 fi
 
 # take baseurl from .spec Source0
-baseurl=$(awk '/^Source0:/{print $2}'  $specfile | xargs dirname)
+baseurl=$(awk '/^Source0:/{print $2}' $specfile | xargs dirname)
 
 if [ "$1" ]; then
 	url=$1
@@ -79,8 +79,9 @@
 else
 	echo "Updating $specfile to $tarball"
 	part=${tarball#${pkg}_}
-   	version=${part%~*} part=${part#*${version}~}
-   	if [ "$part" != "${part%%svn*}" ]; then
+	version=${part%~*} part=${part#*${version}~}
+	release=1
+	if [ "$part" != "${part%%svn*}" ]; then
 		svndate=${part#svn*} svndate=${svndate%%r*}
 		part=${part#svn${svndate}}
 	else
@@ -91,6 +92,7 @@
 	sed -i -e "
 		s/^\(%define[ \t]\+svnver[ \t]\+\)[0-9]\+\$/\1$svnver/
 		s/^\(%define[ \t]\+svndate[ \t]\+\)[0-9]\+\$/\1$svndate/
+		s/^\(%define[ \t]\+rel[ \t]\+\)[0-9]\+\$/\1$release/
 		s/^\(Version:[ \t]\+\)[.0-9]\+\$/\1$version/
 	" $specfile
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/chromium-browser/update-source.sh?r1=1.23&r2=1.24&f=u



More information about the pld-cvs-commit mailing list