[pkg-perl-tools] 04/04: alioth-repo: Read a distribution name as 1st parameter if none is found

Axel Beckert abe at deuxchevaux.org
Tue Jul 21 19:01:43 UTC 2015


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

abe pushed a commit to branch master
in repository pkg-perl-tools.

commit fca9d9babd131d5a4c7b988fe2e15c127471bdc1
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Jul 21 21:01:26 2015 +0200

    alioth-repo: Read a distribution name as 1st parameter if none is found
---
 debian/changelog    | 2 +-
 scripts/alioth-repo | 8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7c89c1a..a040130 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,7 +28,7 @@ pkg-perl-tools (0.21) UNRELEASED; urgency=medium
     "apt-get source" and "gbp-import-dsc".
   * dpt-takeover: set -u only after environment variable checking.
   * dpt-alioth-repo: Proper error message if distribution name couldn't be
-    determined.
+    determined. Read a distribution name as first parameter in that case.
 
   [ gregor herrmann ]
   * dpt-import-orig: use Gbp-Dch for changelog commit message.
diff --git a/scripts/alioth-repo b/scripts/alioth-repo
index 226de6c..b0396cd 100755
--- a/scripts/alioth-repo
+++ b/scripts/alioth-repo
@@ -35,9 +35,15 @@ DIST=`perl -MModule::Inspector -we'my $d=Module::Inspector->new(dist_dir => ".")
 set -e
 
 [ -n "$DIST" ] || DIST=$(detect_dist)
+set +u
+if [ -z "$DIST" ] && [ -n "$1" ]; then
+    set -u
+    DIST="$1"
+fi
+set -u
 
 if [ -z "$DIST" ]; then
-   echo "Couldn't determine distribution name." 1>&2
+   echo "Couldn't determine distribution name. You can pass it manually as parameter." 1>&2
    exit 1
 fi
 

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



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