if(!tgt.is_installable() && loc.empty())
throw invalid_argument(tgt.get_name()+" is not installable");
- string mid;
+ FS::Path mid;
if(!loc.empty())
mid = loc;
+ else if(const Component *comp = tgt.get_component())
+ mid = comp->get_install_map().get_install_location(tgt);
else
mid = tgt.get_install_location();