Allow usage of RepoVariables ($basearch and $releasever) in mirrorlist
authorDominik Heidler <dheidler@suse.de>
Mon, 18 Oct 2010 10:04:21 +0000 (12:04 +0200)
committerDominik Heidler <dheidler@suse.de>
Mon, 18 Oct 2010 10:04:21 +0000 (12:04 +0200)
URLs

zypp/RepoInfo.cc

index da619dc..79c7a7a 100644 (file)
@@ -206,7 +206,10 @@ namespace zypp
   { return _pimpl->type; }
 
   Url RepoInfo::mirrorListUrl() const
-  { return _pimpl->mirrorlist_url; }
+  {
+    repo::RepoVariablesUrlReplacer replacer;
+    return replacer(_pimpl->mirrorlist_url);
+  }
 
   Url RepoInfo::gpgKeyUrl() const
   { return _pimpl->gpgkey_url; }