You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:23:22 UTC

[buildstream] 11/16: Fix parse and store

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch jonathan/mirror-client
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 2cbe8e89b38a174a737e4396d50d3858c5de6d35
Author: Jonathan Maw <jo...@codethink.co.uk>
AuthorDate: Wed May 16 14:13:58 2018 +0100

    Fix parse and store
---
 buildstream/_project.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/buildstream/_project.py b/buildstream/_project.py
index b23a5a8..9fce29e 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -476,7 +476,6 @@ class Project():
             self._shell_host_files.append(mount)
 
         mirrors = _yaml.node_get(config, list, 'mirrors', default_value=[])
-        default_mirror_set = False
         for mirror in mirrors:
             allowed_mirror_fields = [
                 'location-name', 'aliases'
@@ -488,9 +487,8 @@ class Project():
                 assert isinstance(uris, list)
                 alias_mappings[alias_mapping] = list(uris)
             self.mirrors[mirror_location] = alias_mappings
-            if not default_mirror_set:
+            if not self.default_mirror:
                 self.default_mirror = mirror_location
-                default_mirror_set = True
 
     # _assert_plugin_format()
     #