[Lunar-commits] r18962 - moonbase/trunk/utils/ccache/plugin.d

Auke Kok sofar at lunar-linux.org
Wed Mar 1 15:54:17 UTC 2006


Author: sofar
Date: 2006-03-01 15:54:14 +0000 (Wed, 01 Mar 2006)
New Revision: 18962

Modified:
   moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin
Log:
Protect against missing config.


Modified: moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin
===================================================================
--- moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin	2006-03-01 08:23:34 UTC (rev 18961)
+++ moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin	2006-03-01 15:54:14 UTC (rev 18962)
@@ -5,7 +5,9 @@
 plugin_ccache_optimize()
 {
 
-	. /etc/lunar/local/optimizations.CCACHE
+	if [ -f /etc/lunar/local/optimizations.CCACHE ]; then
+		. /etc/lunar/local/optimizations.CCACHE
+	fi
 	
 	if [ "$USE_CCACHE" == "yes" ]; then
 		# we PRE-pend ccache in case distcc is also used to



More information about the Lunar-commits mailing list