- use the alias for restoring a source
This fixes #150256
for( std::list<storage::PersistentStorage::SourceData>::iterator it = new_sources.begin();
it != new_sources.end(); ++it)
{
- unsigned id = addSource(it->url);
+ MIL << "Restoring source: " << it->url << it->product_dir << " with alias " << it->alias << endl;
+ unsigned id = addSource(it->url, it->product_dir, it->alias);
// FIXME: enable, autorefresh
}
}
out << " <product-dir>" << obj.product_dir << "</product-dir>" << std::endl;
out << " <type>" << obj.type << "</type>" << std::endl;
out << " <url>" << obj.url << "</url>" << std::endl;
+ out << " <alias>" << obj.alias << "</alias>" << std::endl;
out << "</source-cache>" << std::endl;
return out.str();
}