r11452 - /scripts/qa/packagecheck

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Fri Dec 21 18:34:59 UTC 2007


Author: gregoa-guest
Date: Fri Dec 21 18:34:59 2007
New Revision: 11452

URL: http://svn.debian.org/wsvn/?sc=1&rev=11452
Log:
improve regexp to catch the upstream version when rewriting URLs in debian/watch, thanks Tincho

Modified:
    scripts/qa/packagecheck

Modified: scripts/qa/packagecheck
URL: http://svn.debian.org/wsvn/scripts/qa/packagecheck?rev=11452&op=diff
==============================================================================
--- scripts/qa/packagecheck (original)
+++ scripts/qa/packagecheck Fri Dec 21 18:34:59 2007
@@ -113,7 +113,7 @@
 	# 6) watchfile
 	if [ -e $TRUNK/$p/debian/watch ] && ! grep search\.cpan\.org/dist/ $TRUNK/$p/debian/watch >/dev/null; then
 		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
+		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[\\\\d_.]+)\\\\.(?:tar(?:\\\\.gz|\\\\.bz2)?|tgz|zip|rar)\$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




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