SourcePackage &main_pkg = dynamic_cast<SourcePackage &>(package_manager.get_main_package());
const Config &config = main_pkg.get_config();
const auto &options = config.get_options();
- const Package::Requirements &requires = main_pkg.get_required_packages();
+ const Package::Requirements &required_pkgs = main_pkg.get_required_packages();
- if(!requires.empty() || !options.empty())
+ if(!required_pkgs.empty() || !options.empty())
IO::print("\nHelp for package %s:\n", main_pkg.get_name());
- if(!requires.empty())
+ if(!required_pkgs.empty())
{
IO::print("\nRequired packages:\n ");
- for(auto i=requires.begin(); i!=requires.end(); ++i)
+ for(auto i=required_pkgs.begin(); i!=required_pkgs.end(); ++i)
{
- if(i!=requires.begin())
+ if(i!=required_pkgs.begin())
IO::print(", ");
IO::print((*i)->get_name());
}
void Component::prepare()
{
- for(Package *r: requires)
+ for(Package *r: required_pkgs)
{
r->prepare();
broken |= r->is_broken();
final_build_info.defines[build_macro] = "1";
const Package::Requirements &pkg_reqs = package.get_required_packages();
- Package::Requirements direct_reqs = requires;
+ Package::Requirements direct_reqs = required_pkgs;
direct_reqs.insert(direct_reqs.end(), pkg_reqs.begin(), pkg_reqs.end());
for(Package *r: direct_reqs)
final_build_info.update_from(r->get_exported_build_info(), BuildInfo::DEPENDENCY);
{
Package *req = obj.package.get_builder().get_package_manager().find_package(n);
if(req)
- obj.requires.push_back(req);
+ obj.required_pkgs.push_back(req);
else
obj.problems.push_back(format("Required package %s not found", n));
}
std::vector<std::string> overlays;
bool install = false;
BuildInfo build_info;
- Package::Requirements requires;
+ Package::Requirements required_pkgs;
bool deflt = true;
InstallMap install_map;
bool broken = false;
public:
bool get_install() const { return install; }
const InstallMap &get_install_map() const { return install_map; }
- const Package::Requirements &get_required_packages() const { return requires; }
+ const Package::Requirements &get_required_packages() const { return required_pkgs; }
bool is_default() const { return deflt; }
bool is_broken() const { return broken; }
const std::vector<std::string> &get_problems() const { return problems; }
prepared = true;
- for(Package *r: requires)
+ for(Package *r: required_pkgs)
{
r->prepare();
broken |= r->is_broken();
{
Package *req = obj.builder.get_package_manager().find_package(n);
if(req)
- obj.requires.push_back(req);
+ obj.required_pkgs.push_back(req);
else
obj.problems.push_back(format("Required package %s not found", n));
}
std::string name;
std::string label;
- Requirements requires;
+ Requirements required_pkgs;
BuildInfo export_binfo;
bool prepared = false;
bool broken = false;
Builder &get_builder() const { return builder; }
const std::string &get_name() const { return name; }
const std::string &get_label() const { return label; }
- const Requirements &get_required_packages() const { return requires; }
+ const Requirements &get_required_packages() const { return required_pkgs; }
const BuildInfo &get_exported_build_info() const { return export_binfo; }