gather: get_packages_to_gather returns a tuple

It always needs to return a tuple, otherwise there would be crashes.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-11-09 14:11:41 +01:00
parent d2804b5d89
commit 69adf35e84

View File

@ -532,7 +532,7 @@ def get_packages_to_gather(compose, arch=None, variant=None, include_arch=True,
be included in a list of packages.
"""
if compose.conf["gather_source"] == "module":
return []
return ([], [])
arches = [arch] if arch else compose.get_arches()