summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-05 20:03:50 +0900
committerTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-06-08 23:50:34 +0900
commit13f8266bc41c018f153a8124718fcda267332e64 (patch)
treef5791f5075524c5c9aa48a7ab304f31dcfdfb0ee
parent55e59d2639343c45af1e50acb5204a1e001e8847 (diff)
downloadbuildstream-13f8266bc41c018f153a8124718fcda267332e64.tar.gz
_includes.py: Use rsplit to split included yaml instead of split
Need to consider only the last element of a path as the filename while the rest of the path is a junction path.
-rw-r--r--src/buildstream/_includes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_includes.py b/src/buildstream/_includes.py
index 7f4863e52..0c77e5fa1 100644
--- a/src/buildstream/_includes.py
+++ b/src/buildstream/_includes.py
@@ -150,7 +150,7 @@ class Includes:
def _include_file(self, include, loader):
shortname = include
if ":" in include:
- junction, include = include.split(":", 1)
+ junction, include = include.rsplit(":", 1)
current_loader = loader.get_loader(junction)
current_loader.project.ensure_fully_loaded()
else: