diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-05-06 19:50:02 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-06-08 23:50:34 +0900 |
commit | 5cc015652cc46bcf3109e9df910a33d3290b2b4a (patch) | |
tree | c1012f2b5a1d2ed290081a9e9bd7215d4ba83f63 | |
parent | c9a00fd7124810b38b1343dda4265444c29d603b (diff) | |
download | buildstream-5cc015652cc46bcf3109e9df910a33d3290b2b4a.tar.gz |
plugin.py: Load full element names recursively.
When opening up the possibility of loading the same junction twice,
it becomes possible to have multiple elements with the same name
following the current implementation logic which enforces that
you must have a toplevel junction to coalesce junctions and synchronize
their configuration.
Since we no longer coalesce junction names, we need to allow elements
to be reported in the UI with their full depth.
-rw-r--r-- | src/buildstream/plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py index 6795043e7..f8652e5cb 100644 --- a/src/buildstream/plugin.py +++ b/src/buildstream/plugin.py @@ -755,7 +755,7 @@ class Plugin: # Set the name, depending on element or source plugin type name = self._element_name if self.__type_tag == "source" else self.name # pylint: disable=no-member if project.junction: - return "{}:{}".format(project.junction.name, name) + return "{}:{}".format(project.junction._get_full_name(), name) else: return name |