aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-createbuildenv
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-xpbuilder-createbuildenv2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv
index 67eea80..f181b51 100755
--- a/pbuilder-createbuildenv
+++ b/pbuilder-createbuildenv
@@ -76,8 +76,10 @@ $CHROOTEXEC /usr/bin/apt-get update
if [ -n "$REMOVEPACKAGES" ]; then
$CHROOTEXEC /usr/bin/dpkg --purge $REMOVEPACKAGES
fi
+recover_aptcache
$CHROOTEXEC /usr/bin/apt-get -y dist-upgrade
$CHROOTEXEC /usr/bin/apt-get -y install build-essential dpkg-dev apt $EXTRAPACKAGES
+save_aptcache
$CHROOTEXEC /usr/bin/apt-get clean
if [ -n "$HOOKDIR" ]; then
executehooks "X"