|
| Downloader (const RepoInfo &info, const Pathname &delta_dir=Pathname()) |
| Constructor from the repository information. More...
|
|
void | download (MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
| Download metadata to a local directory. More...
|
|
RepoStatus | status (MediaSetAccess &media) |
| Status of the remote repository. More...
|
|
| Downloader () |
| Constructor. More...
|
|
| Downloader (const RepoInfo &info) |
| C-tor associating the downloader with a RepoInfo. More...
|
|
virtual | ~Downloader () |
|
const RepoInfo & | repoInfo () const |
|
| ZYPP_DECLARE_FLAGS (Options, Option) |
|
| Fetcher () |
| Default ctor. More...
|
|
virtual | ~Fetcher () |
| Dtor. More...
|
|
void | setOptions (Options options) |
| Set the Fetcher options. More...
|
|
Options | options () const |
| Get current options. More...
|
|
void | addIndex (const OnMediaLocation &resource) |
| Adds an index containing metadata (for example checksums ) that will be retrieved and read before the job processing starts. More...
|
|
void | enqueue (const OnMediaLocation &resource, const FileChecker &checker=FileChecker()) |
| Enqueue a object for transferal, they will not be transfered until start() is called. More...
|
|
void | enqueueDigested (const OnMediaLocation &resource, const FileChecker &checker=FileChecker(), const Pathname &deltafile=Pathname()) |
| Enqueue a object for transferal, they will not be transfered until start() is called. More...
|
|
void | enqueueDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory. More...
|
|
void | enqueueDigestedDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory and always check for checksums. More...
|
|
void | addCachePath (const Pathname &cache_dir) |
| adds a directory to the list of directories where to look for cached files More...
|
|
void | reset () |
| Reset the transfer (jobs) list. More...
|
|
void | start (const Pathname &dest_dir, MediaSetAccess &media, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
| start the transfer to a destination directory dest_dir You have to provde a media set access media to get the files from The file tree will be replicated inside this directory More...
|
|
Downloader for YUM (rpm-nmd) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk.
* MediaSetAccess media(
url);
* yum.download( media, "localdir");
*
Definition at line 41 of file Downloader.h.