X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdatatransform.cpp;fp=source%2Fdatatransform.cpp;h=2f7e8754b66da94d57eda264608b745f346e8ba3;hb=bbd0fd0a91c80a9f2a88992e05f7bb36c0985dca;hp=e45c80a69085f4e68d51dffc8005476d7ecf206c;hpb=7e8d4dd11403234221a34848a69cff486dc72890;p=builder.git diff --git a/source/datatransform.cpp b/source/datatransform.cpp index e45c80a..2f7e875 100644 --- a/source/datatransform.cpp +++ b/source/datatransform.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -16,14 +17,17 @@ DataTransform::DataTransform(Builder &b, const Component &c, const FS::Path &p): FileTarget(b, c.get_package(), p) { component = &c; + + if(FS::Stat st = FS::lstat(FS::dirname(path))) + dir_mtime = st.get_modify_time(); } void DataTransform::find_dependencies() { list files; Cache &cache = component->get_package().get_cache(); - // XXX Should check directory mtime as well - if(mtime