koji_utils: do not raise when arches end up being an empty list
ClosedPublic

Authored by kparal on Jul 4 2016, 1:04 PM.

Details

Summary

Be less strict about arches and related input parameters resulting in
an empty list. Sometimes it's hard to check in advance whether the final
arch list will end up empty or not (task formula). The worst case
scenario is that the method will do nothing - not download anything.
That seems more user friendly than raising an error.

Test Plan

test suite adjusted

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to koji_utils: do not raise when arches end up being an empty list.Jul 4 2016, 1:04 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added a reviewer: libtaskotron.
mkrizek accepted this revision.Jul 7 2016, 10:27 AM
mkrizek added a reviewer: mkrizek.
mkrizek added a subscriber: mkrizek.

LGTM

libtaskotron/ext/fedora/koji_utils.py
204

Maybe we can return [] right away?

This revision is now accepted and ready to land.Jul 7 2016, 10:27 AM
This revision was automatically updated to reflect the committed changes.