aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-03 08:25:19 +0100
committerLoïc Minier <lool@dooz.org>2010-01-03 08:25:19 +0100
commit0e12cc38636ed1841ff465e6aea134002ab066da (patch)
tree76a547fa63ce30c75cb35ca010aaeff1b81e7bb7 /pbuilder-buildpackage
parent4d656f9ba6d76dcfab0fe8f4ed4d645ec228dc90 (diff)
downloadpbuilder-0e12cc38636ed1841ff465e6aea134002ab066da.tar
pbuilder-0e12cc38636ed1841ff465e6aea134002ab066da.tar.gz
Move ccache setup to pbuilder-buildpackage-funcs
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage11
1 files changed, 1 insertions, 10 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 91b8659..b8e2446 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -86,16 +86,7 @@ fi
recover_aptcache
createbuilduser
-if [ -n "$CCACHEDIR" ]; then
- log "I: Setting up ccache"
- if ! [ -d "$BUILDPLACE/$CCACHEDIR" ]; then
- mkdir -p "$BUILDPLACE/$CCACHEDIR"
- fi
- chown -R $BUILDUSERID:$BUILDUSERID "$BUILDPLACE/$CCACHEDIR"
- # Unfortunate difference between pbuilder-style and ccache-style config env
- # vars :-/
- export CCACHE_DIR="$CCACHEDIR"
-fi
+setup_ccache
log "I: Installing the build-deps"
executehooks "D"
trap saveaptcache_umountproc_cleanbuildplace_trap exit sighup sigpipe