Use service alias as namespace for its repositories aliases.
authorMichael Andres <ma@suse.de>
Thu, 18 Sep 2008 14:14:27 +0000 (14:14 +0000)
committerMichael Andres <ma@suse.de>
Thu, 18 Sep 2008 14:14:27 +0000 (14:14 +0000)
package/libzypp.changes
zypp/RepoManager.cc
zypp/ServiceInfo.cc

index 8f24e8bc379770e0d876b9ac84ab6e09cc0251f4..2d6baca07f9c9783e2a31e7b81524ade960794e1 100644 (file)
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+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
 
index 1ebd637df6a0291c23eb02794bbf49c4bbdc98ef..d9fc1f15ba428c0c20434d3479519a7bf9a4a917 100644 (file)
@@ -121,7 +121,7 @@ namespace zypp
     {
       DBG << "Target not initialized, using an empty servicesTargetDistro." << endl;
     }
-    
+
     rootDir = root_r;
   }
 
@@ -1238,7 +1238,7 @@ namespace zypp
       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();
@@ -1672,6 +1672,9 @@ namespace zypp
         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);
@@ -1732,7 +1735,7 @@ namespace zypp
         // exists outside this service. Maybe forcefully re-alias
         // the existing repo?
         addRepository( *it );
-        
+
         // save repo credentials
       }
       else
@@ -1746,7 +1749,7 @@ namespace zypp
           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 )
         {
index f0c04e23dd1d6acb7ce65607116737fad0773224..75f2eb849995178bac5312fc38cebdc8be0e2d47 100644 (file)
@@ -16,7 +16,6 @@
 #include "zypp/parser/xml/XmlEscape.h"
 
 #include "zypp/RepoInfo.h"
-#include "zypp/parser/RepoindexFileReader.h"
 #include "zypp/repo/RepoInfoBaseImpl.h"
 
 #include "zypp/ServiceInfo.h"