aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv6
1 files changed, 6 insertions, 0 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index 1913efc..eafa3e4 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -48,6 +48,12 @@ case "`readlink -e "$PBUILDERSATISFYDEPENDSCMD"`" in
;;
esac
+if [ -n "$CCACHEDIR" ]; then
+ EXTRAPACKAGES="$EXTRAPACKAGES ccache"
+else
+ EXTRAPACKAGES="$EXTRAPACKAGES ccache-"
+fi
+
if [ -n "$REMOVEPACKAGES" ]; then
# FIXME this wont work if the packages have some reverse dependencies;
# apt-get can also remove package, either with apt-get remove or purge, or