diff options
Diffstat (limited to 'pbuilder-createbuildenv')
-rwxr-xr-x | pbuilder-createbuildenv | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv index 2cd7ff5..bbd49e4 100755 --- a/pbuilder-createbuildenv +++ b/pbuilder-createbuildenv @@ -96,6 +96,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 |