diff options
author | Loïc Minier <lool@dooz.org> | 2009-12-11 18:32:01 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2009-12-11 18:33:06 +0100 |
commit | 282d18c7c43af310c6d2adb52478b2cacdc1da53 (patch) | |
tree | 00bd16b907edde45f0ded63bff52f6743a49f404 | |
parent | 46a2ee8206c88e5b70f184d30b12106882adc516 (diff) | |
download | pbuilder-282d18c7c43af310c6d2adb52478b2cacdc1da53.tar pbuilder-282d18c7c43af310c6d2adb52478b2cacdc1da53.tar.gz |
Add support for building packages twice; #493538
Add support for building packages twice; based on a patch by
Nicolas Valcárcel; closes: #493538
-rwxr-xr-x | pbuilder-buildpackage | 4 | ||||
-rwxr-xr-x | pbuilder-checkparams | 5 | ||||
-rw-r--r-- | pbuilder-modules | 1 | ||||
-rw-r--r-- | pbuilder.8 | 5 |
4 files changed, 13 insertions, 2 deletions
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 diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 356a969..ef81878 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -26,6 +26,7 @@ #default value for this option is !empty! INTERNAL_BUILD_UML="" +TWICE="" CHROOTEXEC="" OVERRIDE_APTLINES="no" OVERRIDE_APTLINES_WARN="" # set this if --override-config option should be set. @@ -234,6 +235,10 @@ while [ -n "$1" ]; do IGNORE_UMOUNT="no" shift; ;; + --twice) + TWICE="yes" + shift; + ;; --) # end of processing for this shift; break; diff --git a/pbuilder-modules b/pbuilder-modules index 8f604eb..4b4ba1c 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -72,6 +72,7 @@ pbuilder-options: --preserve-buildplace --bindmounts [bind-mount-point] --debug + --twice --autocleanaptcache --debootstrapopts [debootstrap options] --save-after-login/--save-after-exec @@ -491,6 +491,11 @@ of .B "pbuilder." .TP +.BI "\-\-twice" +Build the package twice in a row. Useful to ensure the package cleans up +properly. The resulting packages are the ones from the second build. + +.TP .BI "\-\-preserve\-buildplace" Do not clean the .B "\-\-buildplace" |