const SourcePackage &spkg = comp->get_package();
string relname = FS::relative(path, spkg.get_source()).str();
- DependencyCache &deps_cache = spkg.get_deps_cache();
- bool deps_found = false;
- if(mtime<deps_cache.get_mtime())
- {
- try
- {
- includes = deps_cache.get_deps(relname);
- deps_found = true;
- }
- catch(const key_error &)
- { }
- }
- if(!deps_found)
+ DependencyCache &deps_cache = spkg.get_deps_cache();
+ if(mtime<deps_cache.get_mtime() && deps_cache.has_deps(relname))
+ includes = deps_cache.get_deps(relname);
+ else
{
try
{