Browse Source

Merge "clone: Create metadata for empty components"

Jenkins 2 years ago
parent
commit
3021c00156
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      packetary/api/repositories.py

+ 2
- 1
packetary/api/repositories.py View File

@@ -118,7 +118,8 @@ class RepositoryApi(object):
118 118
 
119 119
         repositories = self.controller.load_repositories(repos_data)
120 120
         all_packages = self._get_packages(repositories, requirements_data)
121
-        package_groups = defaultdict(set)
121
+        # create a empty package group even repo is empty
122
+        package_groups = {repo: set() for repo in repositories}
122 123
         for pkg in all_packages:
123 124
             package_groups[pkg.repository].add(pkg)
124 125
 

Loading…
Cancel
Save