[Pkg-virtualbox-commits] [virtualbox-guest-additions-iso] 01/06: Fix get-orig-source.sh script

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Tue Aug 23 16:11:52 UTC 2016


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

locutusofborg-guest pushed a commit to branch master
in repository virtualbox-guest-additions-iso.

commit 728e43dbd09f1ff063c0bbd5f19a58658cc6ce40
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Tue Jul 19 10:26:19 2016 +0200

    Fix get-orig-source.sh script
---
 debian/get-orig-source.sh | 6 +++---
 debian/watch              | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
index 89784e0..74fcd23 100755
--- a/debian/get-orig-source.sh
+++ b/debian/get-orig-source.sh
@@ -2,8 +2,8 @@
 
 set -ex
 
-if [ $# -ne 3 ]; then
-  echo "Error: 3 parameters are required."
+if [ $# -ne 2 ]; then
+  echo "Error: 2 parameters are required."
   exit 1
 fi
 
@@ -13,7 +13,7 @@ if [ "$1" != "--upstream-version" ]; then
 fi
 
 UPSTREAM_VERSION=$2
-ORIG_TARBALL=$3
+ORIG_TARBALL=`readlink -e ../`/VBoxGuestAdditions_${UPSTREAM_VERSION}.iso
 
 ORGDIR=`pwd`
 
diff --git a/debian/watch b/debian/watch
index e6e42b4..8f7d1d5 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,5 @@
 version=4
 
+opts=downloadurlmangle=s/^/http:/ \
 http://download.virtualbox.org/virtualbox/([\d\.\-]+)/VBoxGuestAdditions_([\d\.\-]+).iso \
-  debian /bin/sh debian/get-orig-source.sh
+ debian /bin/sh debian/get-orig-source.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox-guest-additions-iso.git



More information about the Pkg-virtualbox-commits mailing list