Public Member Functions |
| Downloader (const RepoInfo &info, const Pathname &delta_dir=Pathname()) |
| Constructor from the repository information.
|
void | download (MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
| Download metadata to a local directory.
|
RepoStatus | status (MediaSetAccess &media) |
| Status of the remote repository.
|
| Downloader () |
| Constructor.
|
| Downloader (const RepoInfo &info) |
| C-tor associating the downloader with a RepoInfo.
|
virtual | ~Downloader () |
const RepoInfo & | repoInfo () const |
| ZYPP_DECLARE_FLAGS (Options, Option) |
| Fetcher () |
| Default ctor.
|
virtual | ~Fetcher () |
| Dtor.
|
void | setOptions (Options options) |
| Set the Fetcher options.
|
Options | options () const |
| Get current options.
|
void | addIndex (const OnMediaLocation &resource) |
| Adds an index containing metadata (for example checksums ) that will be retrieved and read before the job processing starts.
|
void | enqueue (const OnMediaLocation &resource, const FileChecker &checker=FileChecker()) |
| Enqueue a object for transferal, they will not be transfered until start() is called.
|
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.
|
void | enqueueDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory.
|
void | enqueueDigestedDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory and always check for checksums.
|
void | addCachePath (const Pathname &cache_dir) |
| adds a directory to the list of directories where to look for cached files
|
void | reset () |
| Reset the transfer (jobs) list.
|
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
|
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.