From 282d18c7c43af310c6d2adb52478b2cacdc1da53 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Fri, 11 Dec 2009 18:32:01 +0100 Subject: Add support for building packages twice; #493538 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for building packages twice; based on a patch by Nicolas Valcárcel; closes: #493538 --- pbuilder-buildpackage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbuilder-buildpackage') diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 72181f5..e13380d 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -116,11 +116,11 @@ log "I: Building the package" executehooks "A" -DPKG_COMMANDLINE="cd tmp/buildd/*/; dpkg-buildpackage -us -uc ${DEBEMAIL:+\"-e$DEBEMAIL\"} $DEBBUILDOPTS" +DPKG_COMMANDLINE="dpkg-buildpackage -us -uc ${DEBEMAIL:+\"-e$DEBEMAIL\"} $DEBBUILDOPTS" ( : Build process - echo "${DPKG_COMMANDLINE}" | $CHROOTEXEC $SUTOUSER + echo "cd tmp/buildd/*/ && ${DPKG_COMMANDLINE}${TWICE:+ && ${DPKG_COMMANDLINE}}" | $CHROOTEXEC $SUTOUSER ) & BUILD_PID=$! if [ -n "${TIMEOUT_TIME}" ]; then -- cgit v1.2.3