[packages/chromium-browser/DEVEL: 2/7] extract_version: handle .tar.gz urls

glen glen at pld-linux.org
Fri Jan 11 12:21:22 CET 2013


commit c5d786d47510124b5ad23b757cd68a00ac498511
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jan 10 20:38:31 2013 +0200

    extract_version: handle .tar.gz urls

 update-source.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/update-source.sh b/update-source.sh
index 7241594..ebed5c0 100755
--- a/update-source.sh
+++ b/update-source.sh
@@ -20,7 +20,6 @@ dir=$(pwd)
 # extract version components from url
 # exports: $version; $release; $svndate; $svnver
 extract_version() {
-	set -x
 	local url=$1 part
 
 	part=${url#${pkg}[_-]}
@@ -28,7 +27,7 @@ extract_version() {
 		# ubuntu urls
 		version=${part%~*}; part=${part#*${version}~}
 	else
-		version=${part%.tar.xz}; part=${part#*${version}.tar.xz}
+		version=${part%.tar.*}; part=${part#*${version}.tar.*}
 	fi
 
 	# release always 1 :)
@@ -40,6 +39,8 @@ extract_version() {
 		svndate='%{nil}'
 	fi
 	svnver=${part#r}; svnver=${svnver%%.*}
+
+	: version=$version release=$release svnver=$svnver
 }
 
 url2version() {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/5fa8212fbdfe540a3ca1fa039395112760e895e7



More information about the pld-cvs-commit mailing list