summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-09-07 09:25:30 +0200
committerJun Wang <junbill.wang@samsung.com>2016-01-27 00:03:01 +0800
commitc18ec6cbca6513f8bfe0e03d7a51fb323a34b76f (patch)
tree2933f2d95a4111ab8f0cb02d8bd0f6c7b33861d3 /bin
parent6b88e29e7147489c82e7d6d1298bc1d6b0f1b55f (diff)
downloadgit-buildpackage-c18ec6cbca6513f8bfe0e03d7a51fb323a34b76f.tar.gz
git-buildpackage-c18ec6cbca6513f8bfe0e03d7a51fb323a34b76f.tar.bz2
git-buildpackage-c18ec6cbca6513f8bfe0e03d7a51fb323a34b76f.zip
Update to git-pbuilder 1.33
Diffstat (limited to 'bin')
-rw-r--r--bin/git-pbuilder13
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder
index 37ffe67b..a9104d7a 100644
--- a/bin/git-pbuilder
+++ b/bin/git-pbuilder
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: git-pbuilder,v 1.30 2013/11/05 18:17:09 eagle Exp $
+# $Id: git-pbuilder,v 1.33 2014/08/28 21:39:15 eagle Exp $
#
# git-pbuilder -- Wrapper around pbuilder for git-buildpackage
#
@@ -10,6 +10,7 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Based on the example in the git-buildpackage documentation
+# Copyright 2014 Russ Allbery <eagle@eyrie.org>
# Copyright 2008, 2009, 2010, 2011, 2012, 2013
# The Board of Trustees of the Leland Stanford Junior University
#
@@ -227,7 +228,8 @@ update|create|login)
sudo "$BUILDER" --"$action" --distribution "$DIST" \
--othermirror "$OTHERMIRROR" "${OPTIONS[@]}" "$@"
else
- sudo "$BUILDER" --"$action" --distribution "$DIST" "${OPTIONS[@]}" "$@"
+ sudo "$BUILDER" --"$action" --distribution "$DIST" \
+ "${OPTIONS[@]}" "$@"
fi
fi
exit $?
@@ -264,8 +266,11 @@ fi
# Add all of the additional arguments we got on the command line, but quote
# them from the shell since they'll undergo another round of shell expansion
# when the pbuilder runs debbuild.
+source_only=false
for arg in "$@" ; do
- [ "$arg" != "-S" ] || source_only=true
+ if [ x'-S' = x"$arg" ] ; then
+ source_only=true
+ fi
DEBBUILDOPTS+=" $(shell_quote "$arg")"
done
@@ -279,7 +284,7 @@ else
--debbuildopts "$DEBBUILDOPTS" -- "${OPTIONS[@]}"
fi
status="$?"
-if [ -n "`ls ../*_source.changes`" -a $source_only != 'true' ] ; then
+if [ -n "`ls ../*_source.changes`" ] && [ true != "$source_only" ] ; then
rm ../*_source.changes
fi
exit "$status"