yui3/commit

second attempt for dependency issue

authorJacco van Ossenbruggen
Thu Sep 1 22:04:50 2011 +0200
committerJacco van Ossenbruggen
Thu Sep 1 22:04:50 2011 +0200
commit2294851be9f086cf74faa7261ae02f016dbff2c7
tree1ace2b6b5ddb39e77c6c63a9343747447fc729ab
parentd03e167ab5c3d2a85ffcc3978cc7747c3354033e
Diff style: patch stat
diff --git a/config-available/yui3.pl b/config-available/yui3.pl
index c80a5fb675..62a435d4c5 100644
--- a/config-available/yui3.pl
+++ b/config-available/yui3.pl
@@ -51,10 +51,20 @@ http:location(gallery, root(local_yui3_gallery/build), []) :-
 http:location(gallery, this_will_not_be_used, []) :-
 	setting(local, false),!. % just to make http:location(gallery,_) det.
 
+
 http:location(yui3,	     yui3_base(build),	       [js(true)]).
 http:location(yui3_examples, yui3_base(examples),      [js(true)]).
 
+/*
 :- if(current_predicate(http_clean_location_cache/0)).
 :- listen(settings(changed(yui3_conf:_, _, _)), http_clean_location_cache).
 :- endif.
 
+*/
+
+:- if(\+current_predicate(http_clean_location_cache/0)).
+http_clean_location_cache :-
+	retractall(http_path:location_cache(_,_,_)).
+:- endif.
+
+:- listen(settings(changed(yui3_conf:_, _, _)), http_clean_location_cache).