summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-08-08 16:54:48 +0200
committerValentin David <valentin.david@codethink.co.uk>2018-08-20 17:39:07 +0200
commitd25b7d77f4db739b04ac4224c9d8aa9db31aebea (patch)
tree79fbe31d73a5230a76c2a668df44928019f9b77f
parent83f4403d2b0c1ad3ac3c3740738d6f113b535690 (diff)
downloadbuildstream-d25b7d77f4db739b04ac4224c9d8aa9db31aebea.tar.gz
buildstream/_includes.py: Fix caching of included fragments.valentindavid/fix-broken-indentation-after-track-1.2
-rw-r--r--buildstream/_includes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_includes.py b/buildstream/_includes.py
index acecd5e47..e30003630 100644
--- a/buildstream/_includes.py
+++ b/buildstream/_includes.py
@@ -100,7 +100,7 @@ class Includes:
directory = project.directory
file_path = os.path.join(directory, include)
key = (current_loader, file_path)
- if file_path not in self._loaded:
+ if key not in self._loaded:
self._loaded[key] = _yaml.load(os.path.join(directory, include),
shortname=shortname,
project=project,