mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-04 03:08:21 +08:00
Don't assume the context is set on base modules in the 526fb7d445f7_module_buildrequires migration
This commit is contained in:
@@ -80,7 +80,7 @@ def upgrade():
|
||||
.where(mb.c.name == base_module)\
|
||||
.where(mb.c.stream == base_module_dict['stream'])\
|
||||
.where(mb.c.version == base_module_dict['version'])\
|
||||
.where(mb.c.context == base_module_dict['context'])
|
||||
.where(mb.c.context == base_module_dict.get('context'))
|
||||
br = connection.execute(select).fetchone()
|
||||
if not br:
|
||||
# If the buildrequire isn't in the datbase, then skip it
|
||||
|
||||
Reference in New Issue
Block a user