aboutsummaryrefslogtreecommitdiff
path: root/src/ee/ds/doit.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ee/ds/doit.py')
-rw-r--r--src/ee/ds/doit.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ee/ds/doit.py b/src/ee/ds/doit.py
deleted file mode 100644
index f922cf1..0000000
--- a/src/ee/ds/doit.py
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-def uptodate_if_isdir(path):
- def do_check():
- return os.path.isdir(path)
- return do_check
-
-def uptodate_if_older_than(dependency, *targets):
- def do_check():
- dep_mtime = os.stat(dependency).st_mtime
- mtimes = [os.stat(t).st_mtime for t in targets if os.path.isfile(t)]
- target_mtime = max(mtimes) if mtimes else 0
- return dep_mtime < target_mtime
- return do_check