diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-10 21:03:29 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-10 21:05:47 +0900 |
commit | a83c7ab4536498529b9879efebc56460e49279b1 (patch) | |
tree | a8e7bd060c8a32fbd5c15200e5a22da7b3815c26 | |
parent | 1abb94f5b98372a860e4dad86c0e2556b625b9bc (diff) | |
download | buildstream-local-cache-keys-try.tar.gz |
Debugging on gitlablocal-cache-keys-try
-rw-r--r-- | buildstream/plugins/sources/local.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/buildstream/plugins/sources/local.py b/buildstream/plugins/sources/local.py index 830df873f..f43041194 100644 --- a/buildstream/plugins/sources/local.py +++ b/buildstream/plugins/sources/local.py @@ -35,6 +35,7 @@ """ import os +import sys from buildstream import Source, SourceError, Consistency from buildstream import utils @@ -67,9 +68,14 @@ class LocalSource(Source): else: filelist = [(self.path, self.fullpath)] + print("{}: Local file list for unique key: {}".format(self, filelist), file=sys.stderr) + # Return a list of (relative filename, sha256 digest) tuples, a sorted list # has already been returned by list_relative_paths() self.__unique_key = [(relpath, unique_key(fullpath)) for relpath, fullpath in filelist] + + print("{}: Local unique key: {}".format(self, self.__unique_key), file=sys.stderr) + return self.__unique_key def get_consistency(self): |