This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch aevri/win32_minimal
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 734776835de837616b22321fb2d8443b947ab48f
Author: Angelos Evripiotis <[email protected]>
AuthorDate: Fri Oct 4 12:22:52 2019 +0100

    MAYBE: _context: make cachedir an absolute path
---
 src/buildstream/_context.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py
index 74833e9..66a81fa 100644
--- a/src/buildstream/_context.py
+++ b/src/buildstream/_context.py
@@ -255,6 +255,9 @@ class Context():
             if not os.path.isabs(path) and not (directory == 'workspacedir' 
and path == '.'):
                 raise LoadError("{} must be an absolute 
path".format(directory), LoadErrorReason.INVALID_DATA)
 
+        # Note that cachedir needs to be an absolute path, otherwise we'll 
crash later in atomic_write
+        # self.cachedir = os.path.abspath(self.cachedir)
+
         # add directories not set by users
         self.tmpdir = os.path.join(self.cachedir, 'tmp')
         self.casdir = os.path.join(self.cachedir, 'cas')

Reply via email to