r11451 - /scripts/qa/packagecheck

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Fri Dec 21 16:55:30 UTC 2007


Author: gregoa-guest
Date: Fri Dec 21 16:55:30 2007
New Revision: 11451

URL: http://svn.debian.org/wsvn/?sc=1&rev=11451
Log:
if we change the URL in debian/watch, make sure we also have version=3

Modified:
    scripts/qa/packagecheck

Modified: scripts/qa/packagecheck
URL: http://svn.debian.org/wsvn/scripts/qa/packagecheck?rev=11451&op=diff
==============================================================================
--- scripts/qa/packagecheck (original)
+++ scripts/qa/packagecheck Fri Dec 21 16:55:30 2007
@@ -112,8 +112,9 @@
 
 	# 6) watchfile
 	if [ -e $TRUNK/$p/debian/watch ] && ! grep search\.cpan\.org/dist/ $TRUNK/$p/debian/watch >/dev/null; then
-		echo "$p: changing URL in debian/watch"
+		echo "$p: trying to change URL in debian/watch"
 		if perl -i -e "my \$changed=1; while(<>){ \$changed=0 if s{^(?:ht|f)tp://.*cpan.+/(\S+)-(?:\S+)(\s.+)?$}{http://search.cpan.org/dist/\$1/ .*/\$1-v?([\\\\d._]+)(?:\\\\.tar\\\\.gz|\\\\.tgz)\$2}; print;} exit \$changed" $TRUNK/$p/debian/watch ; then
+			perl -pi -e "s;^version=2;version=3;" $TRUNK/$p/debian/watch
 			MSG_WATCH="debian/watch: use dist-based URL."
 			CHANGED=1
 		fi




More information about the Pkg-perl-cvs-commits mailing list