From fb76f5158450f988f1def4ef6bb994840a530513 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 14 Oct 2015 18:33:39 +0000 Subject: pbuilder-buildpackage: only override HOME during dpkg-buildpackage invocation --- pbuilder-buildpackage | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pbuilder-buildpackage') 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 -- cgit v1.2.3