aboutsummaryrefslogtreecommitdiff
path: root/src/ee/fact/doit.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-07-24 17:51:25 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-07-24 17:51:25 +0200
commitee520323410a7f6982f40fe9c6631c3b936bcd2d (patch)
tree835af2ec0109ce9c021de227791777b5100e5233 /src/ee/fact/doit.py
parent894ff92c770320e264961bba55bbf0fba16efe56 (diff)
downloadee-python-ee520323410a7f6982f40fe9c6631c3b936bcd2d.tar.gz
ee-python-ee520323410a7f6982f40fe9c6631c3b936bcd2d.tar.bz2
ee-python-ee520323410a7f6982f40fe9c6631c3b936bcd2d.tar.xz
ee-python-ee520323410a7f6982f40fe9c6631c3b936bcd2d.zip
wip.
o Renaming "fact" to "ds".
Diffstat (limited to 'src/ee/fact/doit.py')
-rw-r--r--src/ee/fact/doit.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ee/fact/doit.py b/src/ee/fact/doit.py
deleted file mode 100644
index f922cf1..0000000
--- a/src/ee/fact/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