download_packages
Description:
[ Version ( since = "0.5.3" ) ]
public Results download_packages (string[] package_ids, string directory, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
public Results download_packages (string[] package_ids, string directory, Cancellable? cancellable, ProgressCallback progress_callback) throws Error
Downloads package files to a specified location.
Warning: this function is synchronous, and may block. Do not use it in GUI applications.
Parameters:
this |
a valid Client instance |
package_ids |
a null terminated array of package_id structures such as "hal;0.0.1;i386;fedora" |
directory |
the location where packages are to be downloaded |
cancellable |
a Cancellable or |
progress_callback |
the function to run when the progress changes |
progress_user_data |
data to pass to |
Returns:
a Results object, or |