Skip to content

Commit 62282a4

Browse files
authored
Merge pull request #263 from olehermanse/update
2 parents c8a1c5e + 75748bb commit 62282a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cfbs/updates.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,13 @@ def update_module(old_module, new_module, module_updates, update):
128128
commit_differs = old_module["commit"] != new_module["commit"]
129129
old_version = old_module.get("version")
130130
local_changes_made = False
131-
for key in old_module.keys():
131+
for key in list(old_module.keys()):
132+
if key == "subdirectory" and old_module[key] == "" and key not in new_module:
133+
# Handle special case of old modules having "" subdirectory:
134+
# no longer allowed, but can be safely removed
135+
del old_module[key]
136+
local_changes_made = True
137+
continue
132138
if key not in new_module or old_module[key] == new_module[key]:
133139
continue
134140
if key == "steps":

0 commit comments

Comments
 (0)