share/rbbt_commands/workflow/prov in rbbt-util-5.17.5 vs share/rbbt_commands/workflow/prov in rbbt-util-5.17.6

- old
+ new

@@ -51,18 +51,23 @@ parts = path.sub(/#{Regexp.quote(name)}$/,'').split "/" task = Log.color(:yellow, parts.pop) workflow = Log.color(:magenta, parts.pop) - status_msg(status) << " " << [workflow, task, path] * " " << "\n" + if $main_mtime and ($main_mtime - File.mtime(path)) < 0 + status_msg(status) << " " << [workflow, task, path] * " " << " (#{Log.color(:red, "Mtime out of sync") })\n" + else + status_msg(status) << " " << [workflow, task, path] * " " << "\n" + end end def report(step, offset = 0) info = step.info || {} path = step.path status = info[:status] || :missing name = info[:name] || File.basename(path) + status = :unsync if status == :done and not File.exists? path str = " " * offset str << report_msg(status, name, path) info[:dependencies].each do |task,name,path| new = ! $seen.include?(path) dep = get_step path @@ -74,7 +79,8 @@ end if info[:dependencies] str end step = get_step file +$main_mtime = File.exists?(step.path) ? File.mtime(step.path) : nil puts report(step).strip