[cpanminus] 01/12: debian/watch: download tarball from Github

gregor herrmann gregoa at debian.org
Sat Dec 9 18:54:50 UTC 2017


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

gregoa pushed a commit to branch master
in repository cpanminus.

commit 6e252d0a78c3cdf3bd5f5a31f2dc5973b30920f7
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Dec 9 16:43:28 2017 +0100

    debian/watch: download tarball from Github
    
    but keep searching for latest stable release version on MetaCPAN, as Github
    also has devel releases with higher version numbers.
---
 debian/watch | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/watch b/debian/watch
index 74a093f..c2c0453 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,10 @@
 version=3
-https://metacpan.org/release/App-cpanminus   .*/App-cpanminus-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$
+
+# Search on MetaCPAN for current stable release,
+# download tarball from Github (with a sane name).
+# Rationale: Github also contains beta versions
+# with higher numbers.
+
+opts="downloadurlmangle=s%.*/App-cpanminus-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$%https://github.com/miyagawa/cpanminus/archive/$1.tar.gz%, \
+      filenamemangle=s%(?:.*?)?v?(\d[\d.-]+)\.tar\.gz%cpanminus-$1.tar.gz%" \
+      https://metacpan.org/release/App-cpanminus   .*/App-cpanminus-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/cpanminus.git



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