X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdependencycache.cpp;h=6e099ba51dd2ce9f89f9cfaf4e608f010e2fce6c;hb=3bf5405f29937128bc945177d73ced3442f7b51d;hp=f691d540190f65da3444ec97823562b3fb05afcd;hpb=0458300fda4f345f865a7f3ee4fc0f2020a91983;p=builder.git diff --git a/source/dependencycache.cpp b/source/dependencycache.cpp index f691d54..6e099ba 100644 --- a/source/dependencycache.cpp +++ b/source/dependencycache.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2007-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include #include @@ -53,7 +46,7 @@ void DependencyCache::load() { string fn = (package.get_source()/".deps").str(); - try + if(FS::Stat st = FS::stat(fn)) { IO::BufferedFile in(fn); @@ -64,8 +57,6 @@ void DependencyCache::load() deps[parts[0]] = StringList(parts.begin()+1, parts.end()); } - mtime = FS::stat(fn).get_modify_time(); + mtime = st.get_modify_time(); } - catch(const IO::file_not_found &) - { } }