summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-08-08 16:54:48 +0200
committerQinusty <jrsmith9822@gmail.com>2018-08-21 08:44:34 +0000
commit6bd688cfa6d309018a57c6125a2240e90aeb730f (patch)
treee9fa9a6985b1774507173a59b7e20e5b994be203
parent18acd3ea4594e34b681f08db82e95b1078fb5d00 (diff)
downloadbuildstream-6bd688cfa6d309018a57c6125a2240e90aeb730f.tar.gz
buildstream/_includes.py: Fix caching of included fragments.
-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,