From 0e12cc38636ed1841ff465e6aea134002ab066da Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sun, 3 Jan 2010 08:25:19 +0100 Subject: Move ccache setup to pbuilder-buildpackage-funcs --- pbuilder-buildpackage | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'pbuilder-buildpackage') 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 -- cgit v1.2.3