Package: devscripts Version: 2.11.0 Severity: normal Tags: patch User: [email protected] Usertag: uscan
Google Code has changed (again, sigh) and is using hrefs like "//dwarftherapist.googlecode.com/files/DwarfTherapist-0.5.2.zip" Uscan doesn't like this very much. Here's a patch to support these URLs. It's not very pretty, but then again uscan isn't very pretty. SR From d2c3778e82733dd23b58c3d4b1b63373d3f006d6 Mon Sep 17 00:00:00 2001 From: Stefano Rivera <[email protected]> Date: Fri, 17 Jun 2011 15:19:27 +0200 Subject: [PATCH] Support //path urls in href (needed for Google Code --- scripts/uscan.pl | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/scripts/uscan.pl b/scripts/uscan.pl index d760281..3c402ff 100755 --- a/scripts/uscan.pl +++ b/scripts/uscan.pl @@ -1121,6 +1121,11 @@ EOF if ($newfile =~ m%^\w+://%) { $upstream_url = $newfile; } + elsif ($newfile =~ m%^//%) { + $upstream_url = $site; + $upstream_url =~ s/^(https?:).*/$1/; + $upstream_url .= $newfile; + } # absolute filename? elsif ($newfile =~ m%^/%) { # Were there any redirections? If so try using those first -- 1.7.5.3 -- Package-specific info: --- /etc/devscripts.conf --- --- ~/.devscripts --- BTS_SMTP_HOST=localhost DEBCHANGE_RELEASE_HEURISTIC=changelog UBUNTUTOOLS_BUILDER=pbuilder REQUESTSYNC_USE_LPAPI=yes UBUNTUTOOLS_DEBIAN_MIRROR=http://ftp.leg.uct.ac.za/debian UBUNTUTOOLS_DEBSEC_MIRROR=http://ftp.leg.uct.ac.za/debian UBUNTUTOOLS_UBUNTU_MIRROR=http://ftp.leg.uct.ac.za/debian -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages devscripts depends on: ii dpkg-dev 1.16.0.3 Debian package development tools ii libc6 2.13-4 Embedded GNU C Library: Shared lib ii perl 5.12.3-7+b1 Larry Wall's Practical Extraction ii python 2.6.6-14 interactive high-level object-orie ii python2.6 2.6.6-10 An interactive high-level object-o ii python2.7 2.7.1-8 An interactive high-level object-o Versions of packages devscripts recommends: ii at 3.1.12-1 Delayed job execution and batch pr ii curl 7.21.6-1 Get a file from an HTTP, HTTPS or ii dctrl-tools 2.18 Command-line tools to process Debi ii debian-keyring [debian-mainta 2011.03.03 GnuPG keys of Debian Developers ii dput 0.9.6.2 Debian package upload tool ii equivs 2.0.8 Circumvent Debian package dependen ii fakeroot 1.15.1-1 tool for simulating superuser priv ii gnupg 1.4.11-3 GNU privacy guard - a free PGP rep ii libcrypt-ssleay-perl 0.57-2+b2 Support for https protocol in LWP ii libjson-perl 2.53-1 module for manipulating JSON-forma ii libparse-debcontrol-perl 2.005-3 parser for debian control-like fil ii libsoap-lite-perl 0.712-3 Perl implementation of a SOAP clie ii liburi-perl 1.58-1 module to manipulate and access UR ii libwww-perl 6.02-1 simple and consistent interface to ii lintian 2.5.0 Debian package checker ii man-db 2.6.0.2-1 on-line manual pager ii patch 2.6.1-2 Apply a diff file to an original ii patchutils 0.3.2-1 Utilities to work with patches ii python-debian 0.1.20 Python modules to work with Debian ii python-magic 5.04-5+b1 File type determination library us ii sensible-utils 0.0.6 Utilities for sensible alternative ii strace 4.5.20-2.3 A system call tracer ii unzip 6.0-4 De-archiver for .zip files ii wdiff 0.6.5-1 Compares two files word by word ii wget 1.12-3.1 retrieves files from the web ii xz-utils 5.0.0-2 XZ-format compression utilities Versions of packages devscripts suggests: ii bsd-mailx [mailx] 8.1.2-0.20100314cvs-1 simple mail user agent ii build-essential 11.5 Informational list of build-essent pn cvs-buildpackage <none> (no description available) pn devscripts-el <none> (no description available) ii gnuplot 4.4.0-1.1 A command-line driven interactive pn libauthen-sasl-per <none> (no description available) ii libfile-desktopent 0.04-2 Perl module to handle freedesktop pn libnet-smtp-ssl-pe <none> (no description available) pn libterm-size-perl <none> (no description available) ii libtimedate-perl 1.2000-1 collection of modules to manipulat ii libyaml-syck-perl 1.17-1+b1 Perl module providing a fast, ligh ii mutt 1.5.21-5 text-based mailreader supporting M ii openssh-client [ss 1:5.5p1-6 secure shell (SSH) client, for sec ii svn-buildpackage 0.8.3 helper programs to maintain Debian ii w3m 0.5.3-2+b1 WWW browsable pager with excellent -- no debconf information -- To unsubscribe, send mail to [email protected].
