- Don't clean the cache, buildCache takes care of it.
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 18 Jun 2007 23:01:18 +0000 (23:01 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 18 Jun 2007 23:01:18 +0000 (23:01 +0000)
src/zypper-sources.cc

index 9070ea2..f8fe1ef 100644 (file)
@@ -161,13 +161,7 @@ void refresh_repos()
       //<< "URI: " << it->url() << endl; 
 
       manager.refreshMetadata(repo);
-
-      if ( manager.isCached(repo ) )
-      {
-        cout_v << _("Cleaning cache...") << endl;
-        manager.cleanCache(repo);
-      }
-      cout_v << _("Parsing repository metadata...") << endl;
+      cout_v << _("Creating repository cache...") << endl;
       manager.buildCache(repo);
 
       cout << _("DONE") << endl << endl;