summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/git-pbuilder7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder
index 6bd7e020..fc0f48c6 100644
--- a/bin/git-pbuilder
+++ b/bin/git-pbuilder
@@ -76,6 +76,7 @@ fi
# Default options come from the environment.
OPTIONS="$GIT_PBUILDER_OPTIONS"
+OUTPUT_DIR="${GIT_PBUILDER_OUTPUT_DIR:-../}"
# How we handle options depends on what type of builder we're using. Ignore
# options if $GIT_PBUILDER_AUTOCONF is set to no.
@@ -244,7 +245,7 @@ fi
if [ no = "$GIT_PBUILDER_AUTOCONF" ] ; then
pdebuild --pbuilder "$BUILDER" --debbuildopts "$DEBBUILDOPTS" -- $OPTIONS
else
- pdebuild --buildresult .. --pbuilder "$BUILDER" \
+ pdebuild --buildresult $OUTPUT_DIR --pbuilder "$BUILDER" \
--debbuildopts "$DEBBUILDOPTS" -- $OPTIONS
fi
status="$?"
@@ -399,6 +400,10 @@ contents of this variable will undergo shell expansion, so any arguments
containing shell metacharacters or whitespace need to be quoted in the
value of the environment variable.
+=item GIT_PBUILDER_OUTPUT_DIR
+
+Where pbuilder puts the build result. Default is '..'.
+
=item PBUILDER_BASE
Set this environment variable to change the defualt location for the