Skip to content

Commit 44faacf

Browse files
committed
Fix missing 'packages' in pure library repos
1 parent 7fbc863 commit 44faacf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package_control/providers/json_repository_provider.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ def fetch_repo(self, location):
154154

155155
# Check type of existing main keys
156156
for key in repo_keys:
157-
if key in repo_info and not isinstance(repo_info[key], list):
157+
if key not in repo_info:
158+
repo_info[key] = []
159+
elif not isinstance(repo_info[key], list):
158160
raise InvalidRepoFileException(self, 'the "%s" key is not an array.' % key)
159161

160162
# Migrate dependencies to libraries

0 commit comments

Comments
 (0)