Author: tille Date: 2012-06-08 07:18:17 +0000 (Fri, 08 Jun 2012) New Revision: 11283
Modified: trunk/packages/maqview/trunk/debian/changelog trunk/packages/maqview/trunk/debian/get-orig-source Log: Enable download from uscan call Modified: trunk/packages/maqview/trunk/debian/changelog =================================================================== --- trunk/packages/maqview/trunk/debian/changelog 2012-06-08 07:14:52 UTC (rev 11282) +++ trunk/packages/maqview/trunk/debian/changelog 2012-06-08 07:18:17 UTC (rev 11283) @@ -1,6 +1,7 @@ maqview (0.2.5-4) UNRELEASED; urgency=low * debian/watch: call debian/get-orig-source + * debian/get-orig-source: Enable download directly from uscan -- Andreas Tille <[email protected]> Fri, 08 Jun 2012 09:13:46 +0200 Modified: trunk/packages/maqview/trunk/debian/get-orig-source =================================================================== --- trunk/packages/maqview/trunk/debian/get-orig-source 2012-06-08 07:14:52 UTC (rev 11282) +++ trunk/packages/maqview/trunk/debian/get-orig-source 2012-06-08 07:18:17 UTC (rev 11283) @@ -5,11 +5,20 @@ # Thus this script simply removes the .svn dir for the moment PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'` -VERSION=`uscan --verbose --force-download | \ - grep "Newest version on remote site is .* local version is .*" | \ - head -n 1 | \ - sed "s/Newest version on remote site is \([-0-9.]\+\),.*/\1/"` +if ! echo $@ | grep -q upstream-version ; then + VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'` +else + VERSION=`uscan --verbose --force-download | \ + grep "Newest version on remote site is .* local version is .*" | \ + head -n 1 | \ + sed "s/Newest version on remote site is \([-0-9.]\+\),.*/\1/"` + if echo "$VERSION" | grep -q "upstream-version" ; then + echo "Unable to parse version number" + exit + fi +fi + mkdir -p ../tarballs cd ../tarballs _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
