The following commit has been merged in the master branch:
commit 8d40745f889e58a3a1c409555649768601ba5385
Author: Stefano Rivera <[email protected]>
Date:   Fri Aug 12 00:19:58 2011 +0200

    Support //scheme-local URLs in hrefs, correctly (as used by Google code) 
(Closes: #630808)

diff --git a/debian/changelog b/debian/changelog
index ec12bc1..e80580a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -36,6 +36,10 @@ devscripts (2.11.1) UNRELEASED; urgency=low
   * uscan: Catch perl warning with incorrect watch files without ().
     Also, catch warnings on non-matches of ()? constructs.
 
+  [ Stefano Rivera ]
+  * Support //scheme-local URLs in hrefs, correctly (as used by Google code)
+    (Closes: #630808)
+
  -- David Prévot <[email protected]>  Wed, 08 Jun 2011 12:16:32 -0400
 
 devscripts (2.11.0) unstable; urgency=low
diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index 2ac7645..289e66c 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -1122,6 +1122,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

-- 
Git repository for devscripts


-- 
To unsubscribe, send mail to [email protected].

Reply via email to