diff options
Diffstat (limited to 'catalyst/base/stagebase.py')
-rw-r--r-- | catalyst/base/stagebase.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 4bcab30c..1ebb2245 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -921,6 +921,12 @@ class StageBase(TargetBase, ClearBase, GenBase): continue config = configparser.ConfigParser() + + # If default is present but does not match this repo's location, + # then we need to explicitly set it as the main repo. + if default is not None: + config['DEFAULT'] = {'main-repo': name} + config[name] = {'location': location} self.write_repo_conf(name, config) |