handle arches=None case
Should handle all these "empty" cases: missing, None, blank string, only whitespace
This commit is contained in:
parent
28d07c11ba
commit
267eff9636
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue