handle arches=None case

Should handle all these "empty" cases: missing, None, blank string, only whitespace
This commit is contained in:
Mike McLean 2020-10-23 16:31:05 -04:00 committed by Tomas Kopecek
parent 28d07c11ba
commit 267eff9636

View file

@ -406,7 +406,7 @@ class RepoManager(object):
if not taginfo:
self.logger.error('Invalid tag for external repo: %s', tag)
return False
arches = taginfo.get('arches', '').split()
arches = (taginfo.get('arches', '') or '').split()
if not arches:
self.logger.warning('Tag with external repo lacks arches: %(name)s', taginfo)
return False