SourcePackage::SourcePackage(Builder &b, const string &n, const FS::Path &f):
Package(b, n),
source_dir(FS::dirname(f)),
- build_type(0),
config(*this),
cache(*this)
{
other components wil be created first */
auto i = find(obj.components, obj.source_archive);
if(i!=obj.components.end())
- obj.components.splice(obj.components.end(), obj.components, i);
+ {
+ obj.components.erase(i);
+ obj.components.push_back(obj.source_archive);
+ }
}
void SourcePackage::Loader::feature(const string &n, const string &d)