[jenkins] 02/09: Mangle the name of the upstream file downloaded
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Sep 2 20:42:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository jenkins.
commit d3f6dcc1c61b67e1cb66af8daf9ada99118dd366
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Sep 2 15:47:21 2014 +0200
Mangle the name of the upstream file downloaded
---
debian/orig-tar.sh | 5 +++--
debian/watch | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 4e65a73..a564431 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -3,11 +3,12 @@
VERSION=$2
TAR=../jenkins_$VERSION.orig.tar.xz
DIR=jenkins-$VERSION
+FILE=../jenkins-$VERSION.tar.gz
mkdir -p $DIR
# Unpack ready fo re-packing
-tar -xzf $3 -C $DIR --strip-components=1
-rm $3
+tar -xzf $FILE -C $DIR --strip-components=1
+rm $FILE
# Repack excluding stuff we don't need
XZ_OPT=--best tar -cJf $TAR \
diff --git a/debian/watch b/debian/watch
index 620ec5b..25e784e 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
version=3
-opts=dversionmangle=s/\+dfsg//,downloadurlmangle=s#http://mirrors.jenkins-ci.org/debian-stable/jenkins_(.*)_all.deb#https://github.com/jenkinsci/jenkins/archive/jenkins-$1.tar.gz# \
+opts=dversionmangle=s/\+dfsg//,downloadurlmangle=s#http://mirrors.jenkins-ci.org/debian-stable/jenkins_(.*)_all.deb#https://github.com/jenkinsci/jenkins/archive/jenkins-$1.tar.gz#,filenamemangle=s#jenkins_([\d\.]+)_all.deb#jenkins-$1.tar.gz# \
http://mirrors.jenkins-ci.org/debian-stable/jenkins_([\d\.]+)_all.deb debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jenkins.git
More information about the pkg-java-commits
mailing list