aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-10-14 18:33:39 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-10-14 18:33:39 +0000
commitfb76f5158450f988f1def4ef6bb994840a530513 (patch)
tree2ec8632b18013f780f5bcbd4118e3c9ecbd27492
parenta60fed7f9f773368c1adcf0f0784972889dd728a (diff)
downloadpbuilder-fb76f5158450f988f1def4ef6bb994840a530513.tar
pbuilder-fb76f5158450f988f1def4ef6bb994840a530513.tar.gz
pbuilder-buildpackage: only override HOME during dpkg-buildpackage invocation
-rwxr-xr-xpbuilder-buildpackage4
1 files changed, 1 insertions, 3 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 310658a..dd99ccc 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -76,8 +76,6 @@ esac
BUILDRESULTUID="${BUILDRESULTUID:-${SUDO_UID:-0}}"
BUILDRESULTGID="${BUILDRESULTGID:-${SUDO_GID:-0}}"
-export HOME="$BUILD_HOME"
-
echobacktime
extractbuildplace
trap umountproc_cleanbuildplace_trap exit sighup sigpipe
@@ -145,7 +143,7 @@ log "I: Building the package"
executehooks "A"
-DPKG_COMMANDLINE="env PATH=\"$PATH\" dpkg-buildpackage -us -uc $DEBBUILDOPTS"
+DPKG_COMMANDLINE="env PATH=\"$PATH\" HOME=\"$BUILD_HOME\" dpkg-buildpackage -us -uc $DEBBUILDOPTS"
# https://launchpad.net/bugs/816556
unset DISPLAY