summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-10 21:03:29 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-10 21:05:47 +0900
commita83c7ab4536498529b9879efebc56460e49279b1 (patch)
treea8e7bd060c8a32fbd5c15200e5a22da7b3815c26
parent1abb94f5b98372a860e4dad86c0e2556b625b9bc (diff)
downloadbuildstream-local-cache-keys-try.tar.gz
Debugging on gitlablocal-cache-keys-try
-rw-r--r--buildstream/plugins/sources/local.py6
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):