[pkg-perl-tools] 01/05: rename $NOGIT to $CREATE

gregor herrmann gregoa at debian.org
Tue Jun 28 08:46:23 UTC 2016


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

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

commit 030edf8b6bca3e6c5d55e57f3eec470023ef0315
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Jun 27 23:10:52 2016 +0200

    rename $NOGIT to $CREATE
    
    less double negations, more expressive about the function
    
    Gbp-Dch: Ignore
---
 scripts/upstream-repo | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/upstream-repo b/scripts/upstream-repo
index 4fd3fb5..4a499ed 100755
--- a/scripts/upstream-repo
+++ b/scripts/upstream-repo
@@ -14,7 +14,7 @@ warn() {
 	echo "$1" >&2
 }
 
-NOGIT=0
+CREATE=1
 
 # command line arguments
 # -g don't call git add/commit for debian/upstream/metadata
@@ -22,7 +22,7 @@ NOGIT=0
 while getopts g OPTS; do
 	case "$OPTS" in
 		g)
-			NOGIT=1
+			CREATE=0
 			;;
 		*)
 			;;
@@ -43,7 +43,7 @@ if ! git remote show | grep -qx upstream-repo ; then
 	REPO=$(perl -MDebian::Copyright -E '$c = Debian::Copyright->new(); $c->read("debian/copyright"); say $c->header()->Source' | grep -oE "git(?:+ssh)?:.+$" || true)
 
 	# case 2: Repository in d/upstream
-	if [ -z "$REPO" -a ! -e debian/upstream/metadata -a "$NOGIT" -eq "0" ] ; then
+	if [ -z "$REPO" -a ! -e debian/upstream/metadata -a "$CREATE" -eq "1" ] ; then
 		warn "No 'debian/upstream/metadata' file found, trying to create it ..."
 		dpt debian-upstream || true
 		git add debian/upstream/metadata

-- 
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