1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
11 #include <zypp/base/String.h>
12 #include <zypp/base/Logger.h>
13 #include <zypp/base/Function.h>
15 #include "MediaInfoDownloader.h"
16 #include <zypp/base/UserRequestException.h>
24 void downloadMediaInfo( const Pathname &dest_dir,
25 MediaSetAccess &media,
26 const ProgressData::ReceiverFnc & progressrcv )
30 //hardcode the max filesize to 20MB, to prevent unlimited data downloads but this limit will
31 //never be reached in a sane setup
32 fetcher.enqueue( OnMediaLocation("/media.1/media").setOptional(true).setDownloadSize( ByteCount(20, ByteCount::MB ) ) );
33 fetcher.start( dest_dir, media, progressrcv );