src/Pure/Thy/thy_info.ML
changeset 24307 434c9fbc1787
parent 24230 f63bca3e574e
child 24314 665b3ab2dabe
equal deleted inserted replaced
24306:7798a0f37253 24307:434c9fbc1787
   402             ThyLoad.deps_thy dir name;
   402             ThyLoad.deps_thy dir name;
   403           in (false, init_deps master' text' parents' files', parents') end
   403           in (false, init_deps master' text' parents' files', parents') end
   404         else
   404         else
   405           let
   405           let
   406             val files' = map (check_ml master') files;
   406             val files' = map (check_ml master') files;
   407             val current = update_time >= 0 andalso forall (is_some o snd) files';
   407             val current = update_time >= 0 andalso can get_theory name
       
   408               andalso forall (is_some o snd) files';
   408             val update_time' = if current then update_time else ~1;
   409             val update_time' = if current then update_time else ~1;
   409             val text' = if current then text else explode (File.read thy_path);
   410             val text' = if current then text else explode (File.read thy_path);
   410             val deps' = SOME (make_deps update_time' master' text' parents files');
   411             val deps' = SOME (make_deps update_time' master' text' parents files');
   411           in (current, deps', parents) end
   412           in (current, deps', parents) end
   412       end);
   413       end);