Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions cfbs/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,11 @@ def update_command(to_update):
update_objects = []
for update in to_update:
old_module = config.get_module_from_build(update.name)
assert (
old_module is not None
), 'We\'ve already checked that modules are in config["build"]'

custom_index = old_module is not None and "index" in old_module
index = Index(old_module["index"]) if custom_index else config.index
if old_module is not None and "index" in old_module:
index = Index(old_module["index"])
else:
index = config.index

if not old_module:
index.translate_alias(update)
Expand All @@ -614,8 +613,7 @@ def update_command(to_update):
)
continue

custom_index = old_module is not None and "index" in old_module
index = Index(old_module["index"]) if custom_index else config.index
index = Index(old_module["index"]) if "index" in old_module else config.index

if not old_module:
index.translate_alias(update)
Expand Down