aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage16
1 files changed, 8 insertions, 8 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 47d08a1..8e87559 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -50,7 +50,6 @@ echobacktime
extractbuildplace
trap umountproc_cleanbuildplace exit
loadhooks
-createbuilduser
if [ -z "${PBUILDER_BUILD_LOGFILE}" ]; then
if [ "${USE_PKGNAME_LOGFILE}" = "yes" ]; then
@@ -64,6 +63,14 @@ if [ -z "${PBUILDER_BUILD_LOGFILE}" ]; then
fi
fi
+recover_aptcache
+echo "Installing the build-deps"
+trap saveaptcache_umountproc_cleanbuildplace exit
+checkbuilddep
+save_aptcache
+trap umountproc_cleanbuildplace exit
+createbuilduser
+
echo "Copying source file"
copydsc "$PACKAGENAME" "$BUILDPLACE/tmp/buildd"
executehooks "D"
@@ -74,13 +81,6 @@ if ! $CHROOTEXEC /bin/bash -c "( cd tmp/buildd; chown $BUILDUSERNAME:$BUILDUSERN
exit 1;
fi
-recover_aptcache
-echo "Installing the build-deps"
-trap saveaptcache_umountproc_cleanbuildplace exit
-checkbuilddep
-save_aptcache
-trap umountproc_cleanbuildplace exit
-
echo " -> Building the package"
export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"