From e7be020ce59cd8a50dcb9a782b3b15cfa769396c Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 1 Dec 2011 15:45:48 +0100 Subject: [PATCH] Adjust GetBuildFile() to use correct cgit-URL. --- data/bin/installoptionalpackage | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/data/bin/installoptionalpackage b/data/bin/installoptionalpackage index 540ea0bfcf..f2a22dfd6d 100755 --- a/data/bin/installoptionalpackage +++ b/data/bin/installoptionalpackage @@ -399,10 +399,13 @@ function GetBuildFile() if ! [ -f ${baseDir}/${buildfile} ] ; then echo "Fetching ${buildfile} ..." cd ${baseDir} - local baseURL=http://dev.haiku-os.org/export/ - local revision=`uname -v | awk '{print $1}' | sed -e 's/r//'` - local url="${baseURL}${revision}/haiku/trunk/build/jam/${buildfile}" - wget -q ${url} || ErrorExit "...failed to download $buildfile" + local baseURL=http://cgit.haiku-os.org/haiku/plain + local revisionTag=`uname -v | awk '{print $1}' | sed -e 's/-.*//'` + # the sed invocation above drops potential dirty markers off the + # revision tag + local url="${baseURL}/build/jam/${buildfile}?id=${revisionTag}" + wget -q ${url} -O ${buildfile} \ + || ErrorExit "...failed to download $buildfile" fi }