void Component::prepare()
{
for(Package *r: requires)
+ {
r->prepare();
+ broken |= r->is_broken();
+ }
+
+ if(!problems.empty())
+ broken = true;
}
void Component::create_build_info()
void Component::Loader::source(const string &s)
{
- obj.sources.push_back((obj.package.get_source_directory()/s).str());
+ FS::Path src_path = obj.package.get_source_directory()/s;
+ if(!FS::exists(src_path))
+ throw IO::file_not_found(src_path.str());
+ obj.sources.push_back(src_path);
}