bodhi_directive - download updates from Bodhi¶
New in version 0.4.
The bodhi directive interfaces with Bodhi to facilitate various actions. At the moment, the only action supported is downloading updates (i.e. all RPMs from all builds related to a specific update).
Parameters¶
Parameter | Required | Description | Type | Default | Choices |
---|---|---|---|---|---|
action |
yes | specify action type. The only action available at the moment is download. |
str |
||
arch |
yes | an architecture (or a list of architectures) for which to download RPMs. Note: noarch RPMs are always automatically downloaded even when not requested, unless arch=[] and src=True. |
str or list of str |
||
src |
no | download also src RPM files |
bool |
False |
|
target_dir |
yes | directory into which to download builds. It gets created if it doesn't exist. |
str |
||
update_id |
yes | Bodhi update ID to download, e.g. FEDORA-2014-7485. |
str |
Return Values¶
A dictionary containing following items:
downloaded_rpms
: (list of str) a list of local filenames of the downloaded RPMs
Exceptions¶
TaskotronDirectiveError
: if no update withupdate_id
has been foundTaskotronRemoteError
: if downloading failedTaskotronValueError
: ifarch=[]
andsrc=False
, therefore there is nothing to download