diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-23 16:44:36 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-24 18:09:58 +0900 |
commit | b583317c7954d29fce60728486537e945e0d9c28 (patch) | |
tree | 03e6792ee6357e2fbebcb994d4a529f4b54b85bd /requirements | |
parent | ea753a4ee9dc12d37ce86d50f4c01ef9fcb2d874 (diff) | |
download | buildstream-b583317c7954d29fce60728486537e945e0d9c28.tar.gz |
source.py: Remove BST_KEY_REQUIRES_STAGE
Refactored this to remove unneeded complexity in the code base,
as described here:
https://lists.apache.org/thread.html/r4b9517742433f07c79379ba5b67932cfe997c1e64965a9f1a2b613fc%40%3Cdev.buildstream.apache.org%3E
Changes:
* source.py: Added private Source._cache_directory() context manager
We also move the assertion about nodes which are safe to write to
a bit lower in Source._set_ref(), as this was unnecessarily early.
When tracking a workspace, the ref will be none and will turn out
to be none afterwards, it is not a problem that a workspace's node
is a synthetic one, as tracking will never affect it.
* local plugin: Implement get_unique_key() and stage() using
the new context manager in order to optimize staging and
cache key calculations here.
* workspace plugin: Implement get_unique_key() and stage() using
the new context manager in order to optimize staging and
cache key calculations here.
* trackqueue.py: No special casing with Source._is_trackable()
Diffstat (limited to 'requirements')
0 files changed, 0 insertions, 0 deletions