config: ConfigStatic should only try to fetch missing known repos

When a configuration file depends on a include from a repo, which is
defined in another included file, a 'KeyError' occures.

This fixes this, so that only known repos are tried to be fetched.

Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
Claudius Heine 2017-07-11 15:21:37 +02:00 committed by Daniel Wagner
parent 2a4a34865a
commit 23c3a951f6

View File

@ -344,7 +344,8 @@ class ConfigStatic(Config):
repo_dict = self.get_repo_dict()
missing_repos = [repo_dict[repo_name]
for repo_name in missing_repo_names]
for repo_name in missing_repo_names
if repo_name in repo_dict]
repos_fetch(self, missing_repos)