diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-05-03 19:44:01 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-05-04 20:16:38 +0900 |
commit | f17b84236391d27247aae9fb004c420b20b1142c (patch) | |
tree | 5370ee0481d7a489fd750ece0c2b434bde52e254 /src | |
parent | 53b7374d6962b750e453a85d793f1a59038b4a65 (diff) | |
download | buildstream-f17b84236391d27247aae9fb004c420b20b1142c.tar.gz |
_pluginfactory/pluginorigin.py: Store provenance of origins for error reporting
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/_pluginfactory/pluginorigin.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildstream/_pluginfactory/pluginorigin.py b/src/buildstream/_pluginfactory/pluginorigin.py index 14d7a76bf..e865006ac 100644 --- a/src/buildstream/_pluginfactory/pluginorigin.py +++ b/src/buildstream/_pluginfactory/pluginorigin.py @@ -58,6 +58,7 @@ class PluginOrigin: self.origin_type = origin_type # The PluginOriginType self.elements = {} # A dictionary of PluginConfiguration self.sources = {} # A dictionary of PluginConfiguration objects + self.provenance = None # Private self._project = None @@ -85,6 +86,7 @@ class PluginOrigin: elif origin_type == PluginOriginType.PIP: origin = PluginOriginPip() + origin.provenance = origin_node.get_provenance() origin._project = project origin._load(origin_node) |