aboutsummaryrefslogtreecommitdiff
path: root/pbuilder
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder')
-rwxr-xr-xpbuilder4
1 files changed, 4 insertions, 0 deletions
diff --git a/pbuilder b/pbuilder
index 17cf9cf..0a6aa46 100755
--- a/pbuilder
+++ b/pbuilder
@@ -71,6 +71,8 @@ File extracted to: $BUILDPLACE
${CHROOTEXEC} bin/bash
save_aptcache
+ ${CHROOTEXEC} /usr/bin/apt-get clean
+
trap umountproc_cleanbuildplace exit
# saving the place afterwards
@@ -112,6 +114,8 @@ File extracted to: $BUILDPLACE
${CHROOTEXEC} /run "$@"
save_aptcache
+ ${CHROOTEXEC} /usr/bin/apt-get clean
+
trap umountproc_cleanbuildplace exit
# saving the place afterwards