summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-23 16:07:25 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2018-10-25 15:43:52 +0100
commitb279c730ef38e599a79147a6bfeb80acc52c2f35 (patch)
treec1dc584f9f001e229db8a3ca49fa245dbc25f392
parent5a3a537fe146129e1e6551f6689cf3d8ef4dfbbf (diff)
downloadbuildstream-b279c730ef38e599a79147a6bfeb80acc52c2f35.tar.gz
_yamlcache.py: Correct bug in `YamlCache._get_filepath()`
The correct file path was computed but never returned. This was never caught because of a test missing consumption of one of its parameters. This commit resolves the bug mentioned in #722 leaving the test to be amended by a future commit. Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
-rw-r--r--buildstream/_yamlcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_yamlcache.py b/buildstream/_yamlcache.py
index 39b24cccc..9b5e3212f 100644
--- a/buildstream/_yamlcache.py
+++ b/buildstream/_yamlcache.py
@@ -207,7 +207,7 @@ class YamlCache():
filepath = os.path.relpath(full_path, project.directory)
else:
filepath = full_path
- return full_path
+ return filepath
# _calculate_key():
#