- if(!loc.empty())
- mid = loc;
- else if(const Component *comp = tgt.get_component())
- mid = comp->get_install_map().get_install_location(tgt);
+ if(!loc.compare(0, 2, "//"))
+ {
+ if(!tgt.get_package())
+ throw invalid_argument("No private install location for "+tgt.get_name());
+
+ prefix = tgt.get_package()->get_temp_directory();
+ mid = loc.substr(2);
+ }