aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-checkparams
diff options
context:
space:
mode:
Diffstat (limited to 'pdebuild-checkparams')
-rw-r--r--pdebuild-checkparams3
1 files changed, 3 insertions, 0 deletions
diff --git a/pdebuild-checkparams b/pdebuild-checkparams
index e03808f..2c003d0 100644
--- a/pdebuild-checkparams
+++ b/pdebuild-checkparams
@@ -22,6 +22,8 @@
. /usr/lib/pbuilder/pbuilder-loadconfig
. /usr/lib/pbuilder/pbuilder-modules
+PBUILDER_BUILD_LOGFILE=
+
while [ -n "$1" ]; do
case "$1" in
# pbuilder-shared options.
@@ -84,6 +86,7 @@ while [ -n "$1" ]; do
;;
--logfile)
echo " -> Logging to $2"
+ PBUILDER_BUILD_LOGFILE=$(readlink -f $2)
exec > >(tee "$2");
exec 2>&1
shift; shift;