Media verification: split media download to a separate function
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 19 Jul 2007 15:43:31 +0000 (15:43 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 19 Jul 2007 15:43:31 +0000 (15:43 +0000)
zypp/repo/MediaInfoDownloader.cc
zypp/repo/susetags/Downloader.cc

index 9c35864..f13db27 100644 (file)
@@ -27,7 +27,7 @@ void downloadMediaInfo( const Pathname &dest_dir,
                         const ProgressData::ReceiverFnc & progressrcv )
 {
   Fetcher fetcher;
-  fetcher.enqueue( OnMediaLocation("/media.1/media") );
+  fetcher.enqueue( OnMediaLocation().setFilename( "/media.1/media") );
   fetcher.start( dest_dir, media, progressrcv );
   // ready, go!
   fetcher.reset();
index 709c4a9..910bb1b 100644 (file)
@@ -35,7 +35,7 @@ void Downloader::download( MediaSetAccess &media,
                            const ProgressData::ReceiverFnc & progress )
 {
   downloadMediaInfo( dest_dir, media );
-  
+
   SignatureFileChecker sigchecker;
 
   Pathname sig = _path + "/content.asc";