Add support for downloading SRPM for koji directive
ClosedPublic

Authored by mkrizek on Jun 11 2014, 12:01 PM.

Details

Summary

Downloads only source srpm when arch is 'src'.

Fixes T210

Test Plan

Unit tests

koji:

action: download
koji_build: xchat-2.8.8-21.fc20
arch: src

Diff Detail

Repository
rLTRN libtaskotron
Lint
Lint Skipped
Unit
Unit Tests Skipped
mkrizek retitled this revision from to Add support for downloading SRPM for koji directive.Jun 11 2014, 12:01 PM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added reviewers: tflink, kparal, jskladan.
tflink requested changes to this revision.Jun 11 2014, 1:24 PM

Minor nit but otherwise looks good

libtaskotron/directives/koji_directive.py
75

I think that adding 'noarch' is valid for all cases except when 'src' is the only arch specified. We don't have any tasks that do this right now, but if arch is something like ['x86_64', 'src'], 'noarch' should be appended.

This revision now requires changes to proceed.Jun 11 2014, 1:24 PM
mkrizek updated this revision to Diff 398.Jun 12 2014, 1:01 PM

Address issue mentioned in the review

kparal added inline comments.Jun 12 2014, 2:08 PM
libtaskotron/directives/koji_directive.py
12–40

Can you please document the arch behavior? What gets added to the list when, that src is supported, etc.

90

I think it should be 'src' in self.arches here. The directive should be able to download src rpms in addition to requested arch rpms.

mkrizek updated this revision to Diff 400.Jun 12 2014, 2:38 PM

Addressing issues

kparal accepted this revision.Jun 12 2014, 3:34 PM

Looks good (comment below).

libtaskotron/directives/koji_directive.py
36

I got a bit confused by the wording, maybe this could work better:

Additional supported ``arch`` argument value: ``src``
mkrizek closed this revision.Jun 12 2014, 3:37 PM
mkrizek updated this revision to Diff 405.

Closed by commit rLTRNf3ee0072a004 (authored by @mkrizek).