equal
deleted
inserted
replaced
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); |