Use enum for flags

This adds an extra dependency on python-enum34.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-01-18 13:35:49 +01:00
parent d5e6639a6d
commit ec67eac1cc
5 changed files with 33 additions and 17 deletions

View file

@ -138,7 +138,7 @@ def main():
def _get_flags(gather_obj, pkg):
flags = gather_obj.result_package_flags.get(pkg, [])
flags = "(%s)" % ",".join(sorted(flags))
flags = "(%s)" % ",".join(sorted(f.name for f in flags))
return flags