failover to mirrorlist url when checking schemeIsDownloading
authorDominik Heidler <dheidler@suse.de>
Tue, 21 Dec 2010 14:49:06 +0000 (15:49 +0100)
committerDominik Heidler <dheidler@suse.de>
Tue, 21 Dec 2010 14:49:06 +0000 (15:49 +0100)
zypp/RepoInfo.cc

index c1a66c9..adfb9c0 100644 (file)
@@ -306,7 +306,12 @@ namespace zypp
     if (indeterminate(_pimpl->keeppackages))
     {
       if (_pimpl->baseUrls().empty())
-        return false;
+      {
+        if ( _pimpl->getmirrorListUrl().schemeIsDownloading() )
+          return true;
+        else
+          return false;
+      }
       else if ( baseUrlsBegin()->schemeIsDownloading() )
         return true;
       else