dont empty the dir if the dir does not need refresh
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 18 Jun 2007 21:17:58 +0000 (21:17 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Mon, 18 Jun 2007 21:17:58 +0000 (21:17 +0000)
zypp/RepoManager.cc

index cd3145f..9cace8c 100644 (file)
@@ -345,7 +345,8 @@ namespace zypp
 
           if ( refresh )
             downloader.download(tmpdir.path());
-          
+          else
+            return;
            // no error
         }
         break;
@@ -371,6 +372,8 @@ namespace zypp
  
           if ( refresh )
             downloader.download(tmpdir.path());
+          else
+            return;
           // no error
         }
         break;