Debian Codegraph @

doc/samples/check_timestamp_unchanged.py

raw symbols SCIP
1 from doit.tools import check_timestamp_unchanged
2
3 def task_create_foo():
4 return {
5 'actions': ['touch foo', 'chmod 750 foo'],
6 'targets': ['foo'],
7 'uptodate': [True],
8 }
9
10 def task_on_foo_changed():
11 # will execute if foo or its metadata is modified
12 return {
13 'actions': ['echo foo modified'],
14 'task_dep': ['create_foo'],
15 'uptodate': [check_timestamp_unchanged('foo', 'ctime')],
16 }