+-------------------------------------------------------------------
+Thu Sep 18 16:11:23 CEST 2008 - ma@suse.de
+
+- Use service alias as namespace for it's repositories aliases.
+- revision 11097
+
-------------------------------------------------------------------
Thu Sep 18 12:45:25 CEST 2008 - jkupec@suse.cz
{
DBG << "Target not initialized, using an empty servicesTargetDistro." << endl;
}
-
+
rootDir = root_r;
}
for_(urlit, tosave.baseUrlsBegin(), tosave.baseUrlsEnd())
if (!urlit->getPassword().empty() && !urlit->getUsername().empty())
//! \todo use a method calling UI callbacks to ask where to save creds?
- cm.saveInUser(media::AuthData(*urlit));
+ cm.saveInUser(media::AuthData(*urlit));
}
progress.toMax();
it->setPath("");
}
+ // Prepend service alias:
+ it->setAlias( str::form( "%s: %s", service.alias().c_str(), it->alias().c_str() ) );
+
// use the same credentials as the service
if (!serviceCredParam.empty())
url.setQueryParam("credentials", serviceCredParam);
// exists outside this service. Maybe forcefully re-alias
// the existing repo?
addRepository( *it );
-
+
// save repo credentials
}
else
oldRepoModified = true;
}
-#warning also check changed URL due to PATH/URL change in service, but ignore ?credentials param!
+#warning also check changed URL due to PATH/URL change in service, but ignore ?credentials param!
// save if modified:
if ( oldRepoModified )
{
#include "zypp/parser/xml/XmlEscape.h"
#include "zypp/RepoInfo.h"
-#include "zypp/parser/RepoindexFileReader.h"
#include "zypp/repo/RepoInfoBaseImpl.h"
#include "zypp/ServiceInfo.h"