Merge from master
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/cached/RepoImpl.cc
zypp/repo/yum/Downloader.cc

index f13db27..9c35864 100644 (file)
@@ -27,7 +27,7 @@ void downloadMediaInfo( const Pathname &dest_dir,
                         const ProgressData::ReceiverFnc & progressrcv )
 {
   Fetcher fetcher;
-  fetcher.enqueue( OnMediaLocation().setFilename( "/media.1/media") );
+  fetcher.enqueue( OnMediaLocation("/media.1/media") );
   fetcher.start( dest_dir, media, progressrcv );
   // ready, go!
   fetcher.reset();
index 7fd258f..62d7b6c 100644 (file)
@@ -74,7 +74,6 @@ static int global_progress_handler(void* ptr)
   RepoImpl *r = (RepoImpl *)(ptr);
   if ( r )
     return r->progress_handler(ptr);
-
   return 1;
 }
 
index 0bee6a3..d338a59 100644 (file)
@@ -97,6 +97,7 @@ void Downloader::download( MediaSetAccess &media,
   //downloadMediaInfo( dest_dir, _media );
   
   _dest_dir = dest_dir;
+  
   if ( _media_ptr->doesFileExist(keypath) )
     this->enqueue( OnMediaLocation(keypath,1) );