- 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 &)
- { }
- }
+ string line;
+ while(in.getline(line))
+ if(RegMatch match = r_include.match(line))
+ includes.push_back(match[1].str);
+}