aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-xpbuilder-checkparams7
1 files changed, 7 insertions, 0 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index ba0a24d..2e350d0 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -297,5 +297,12 @@ case "$PBCURRENTCOMMANDLINEOPERATION" in
;;
esac
+if [ -n "$CCACHEDIR" ]; then
+ if [ -d "$CCACHEDIR" ]; then
+ BINDMOUNTS="$BINDMOUNTS $CCACHEDIR"
+ fi
+ export PATH="/usr/lib/ccache:$PATH"
+fi
+
# sort BINDMOUNTS to ensure that deeper directories are mounted last
BINDMOUNTS="$(for i in $BINDMOUNTS; do echo $i; done | sort -u)"