[devscripts] 01/05: uscan: Update the GitHub example

James McCoy jamessan at debian.org
Mon Jan 20 02:56:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch master
in repository devscripts.

commit b7162a0adb2b590e231d2557b73643a41afea910
Author: James McCoy <jamessan at debian.org>
Date:   Sun Jan 19 10:34:45 2014 -0500

    uscan: Update the GitHub example
    
    Closes: #728182
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog | 2 ++
 scripts/uscan.1  | 7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8819c91..cce9608 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,8 @@ devscripts (2.14.1) UNRELEASED; urgency=low
       #735085)
     + Skip the watchfile line if pgpsigurlmangle is defined but
       upstream-signing-key.pgp is missing.  (Closes: #735084)
+    + Update the GitHub example.  Based on a patch by YABUKI Yukiharu.
+      (Closes: #728182)
 
  -- Jakub Wilk <jwilk at debian.org>  Fri, 27 Dec 2013 18:39:11 +0100
 
diff --git a/scripts/uscan.1 b/scripts/uscan.1
index 17e7941..d0ce0f9 100644
--- a/scripts/uscan.1
+++ b/scripts/uscan.1
@@ -76,8 +76,11 @@ http://example.com/example-(\ed[\ed\.]*)\e.(?:zip|tgz|tbz2|txz|tar\e.(?:gz|bz2|x
 # be rewritten to use the redirector.
 http://sf.net/audacity/audacity-src-(.+)\e.tar\e.gz
 
-# For GitHub projects you can use the tags page:
-https://github.com/<user>/<project>/tags .*/(\ed[\ed\e.]*)\e.tar\e.gz
+# For GitHub projects you can use the tags or releases page.  Since the archive
+# URLs use only the version as the name, it is recommended to use a
+# filenamemangle to adjust the name of the downloaded file:
+opts="filenamemangle=s/(?:.*\/)?v?(\ed[\ed\e.]*)\e.tar\e.gz/<project>-$1.tar.gz/" \e
+  https://github.com/<user>/<project>/tags (?:.*/)?v?(\ed[\ed\e.]*)\e.tar\e.gz
 
 # For Google Code projects you should use the downloads page like this:
 http://code.google.com/p/<project>/downloads/list?can=1 \e

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list