We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513d05f commit caac53dCopy full SHA for caac53d
lib/tools/common/patching_config.py
@@ -52,11 +52,9 @@ def __str__(self):
52
class PatchingConfig:
53
def __init__(self, yaml_config_file_paths: list[str]):
54
self.yaml_config_file_paths = yaml_config_file_paths
55
- if len(yaml_config_file_paths) == 0:
56
- self.yaml_config = {}
57
- else:
58
- # I'm lazy, single one for now.
59
- self.yaml_config = self.read_yaml_config(yaml_config_file_paths[0])["config"]
+ self.yaml_config = {}
+ for p in yaml_config_file_paths:
+ self.yaml_config.update(self.read_yaml_config(p)["config"])
60
61
self.patches_to_git_config: PatchingToGitConfig = PatchingToGitConfig(self.yaml_config.get("patches-to-git", {}))
62
0 commit comments