add some debug
authorDominik Heidler <dheidler@suse.de>
Fri, 10 Dec 2010 16:23:37 +0000 (17:23 +0100)
committerDominik Heidler <dheidler@suse.de>
Fri, 10 Dec 2010 16:23:37 +0000 (17:23 +0100)
zypp/RepoInfo.cc
zypp/repo/RepoMirrorList.cc

index 04ef684..fcf49d1 100644 (file)
@@ -81,6 +81,7 @@ namespace zypp
         emptybaseurls = true;
         repo::RepoMirrorList *rmirrorlist = NULL;
 
+        DBG << "MetadataPath: " << metadatapath << endl;
         if( metadatapath.empty() )
           rmirrorlist = new repo::RepoMirrorList (getmirrorListUrl() );
         else
index 965e1d8..9ccfda7 100644 (file)
@@ -56,6 +56,7 @@ namespace zypp
         tmpfile = access.provideFile(filepath);
 
         zypp::filesystem::copy(tmpfile, cachefile);
+        DBG << "Copy MirrorList file to " << cachefile << endl;
       }
 
       if ( url.asString().find("/metalink") != string::npos )
@@ -69,7 +70,10 @@ namespace zypp
 
       setUrls( my_urls );
       if( urls.empty() )
+      {
+        DBG << "Removing Cachefile as it contains no URLs" << endl;
         zypp::filesystem::unlink(cachefile);
+      }
     }
 
     RepoMirrorList::RepoMirrorList( const Url &url )