X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.cpp;h=d6dcd1681c4d589cdb7976279e7acfdc032dd46c;hb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;hp=061a3ae20968750a70a589d21618059cb150c913;hpb=87ea54db19306434bac3e765c9bd3464fd53f390;p=builder.git diff --git a/source/filetarget.cpp b/source/filetarget.cpp index 061a3ae..d6dcd16 100644 --- a/source/filetarget.cpp +++ b/source/filetarget.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2009-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include #include @@ -22,11 +15,10 @@ FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a): { builder.add_target(this); - struct stat st; - if(!FS::lstat(path, st)) + if(FS::Stat st = FS::lstat(path)) { - mtime = Time::TimeStamp::from_unixtime(st.st_mtime); - size = st.st_size; + mtime = st.get_modify_time(); + size = st.get_size(); } }