aboutsummaryrefslogtreecommitdiff
path: root/pbuilder
diff options
context:
space:
mode:
authordancer <dancer>2005-03-04 04:49:42 +0000
committerdancer <dancer>2005-03-04 04:49:42 +0000
commitea60559e712e73a94159e9eaad0e841f3a0f1010 (patch)
treedd2685aaf2395a1cdcac2bd16c7ca0097e7854a6 /pbuilder
parentfe8b58c821ae8c64663d50f528477ed3cdcf930e (diff)
downloadpbuilder-ea60559e712e73a94159e9eaad0e841f3a0f1010.tar
pbuilder-ea60559e712e73a94159e9eaad0e841f3a0f1010.tar.gz
+2005-03-04 Junichi Uekawa <dancer@debian.org>
+ + * pbuilder: apply patch frp, Danilo to save aptcache on pbuilder login. + Apply similar change to pbuilder execute. + 271600 + + * pbuilder.8: + * pbuilder-checkparams: + * pbuilder-modules: support --aptcache option + thanks: Danilo Piazzalunga <danilopiazza@libero.it> + 295766 + + * Cleaned build dir for pbuilder-uml #297100 + + * pbuilder-modules (pbuilder-options): document save-after-login/exec + flag in --help output. #296672 +
Diffstat (limited to 'pbuilder')
-rwxr-xr-xpbuilder11
1 files changed, 11 insertions, 0 deletions
diff --git a/pbuilder b/pbuilder
index 1d74476..377d2fe 100755
--- a/pbuilder
+++ b/pbuilder
@@ -57,6 +57,9 @@ case "$1" in
extractbuildplace
trap umountproc_cleanbuildplace exit
loadhooks
+ recover_aptcache
+ trap saveaptcache_umountproc_cleanbuildplace exit
+
if [ "${INTERNAL_BUILD_UML}" = "yes" ]; then
echo " -> entering the shell"
else
@@ -67,6 +70,9 @@ File extracted to: $BUILDPLACE
executehooks "F"
chroot "$BUILDPLACE" bin/bash
+ save_aptcache
+ trap umountproc_cleanbuildplace exit
+
# saving the place afterwards
if [ "${SAVE_AFTER_LOGIN}" = "yes" ]; then
if [ "${INTERNAL_BUILD_UML}" = "yes" ]; then
@@ -96,12 +102,17 @@ File extracted to: $BUILDPLACE
trap umountproc_cleanbuildplace exit
loadhooks
+ recover_aptcache
+ trap saveaptcache_umountproc_cleanbuildplace exit
+
RUNNAME="$BUILDPLACE/run"
cat "$EXECPROGRAM" > "$RUNNAME"
chmod a+x "$RUNNAME"
executehooks "F"
chroot "$BUILDPLACE" /run "$@"
+ save_aptcache
+ trap umountproc_cleanbuildplace exit
# saving the place afterwards
if [ "${SAVE_AFTER_LOGIN}" = "yes" ]; then