summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-05-09 15:18:33 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-05-09 15:18:33 +0000
commitc6da8346b44920aa8fe3af37d30748bb915a68d0 (patch)
tree4228f108e0befe3ffd0dd1a65a0e7ed1da08acfd
parentebe16fa8ab9b0caab8231ea453c446499a7b25ba (diff)
downloadmorph-c6da8346b44920aa8fe3af37d30748bb915a68d0.tar.gz
bins fixups
-rw-r--r--morphlib/bins.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/bins.py b/morphlib/bins.py
index da61bc18..1ce5a0eb 100644
--- a/morphlib/bins.py
+++ b/morphlib/bins.py
@@ -80,6 +80,7 @@ class HashedOutputStream(object):
self.f.write(data, *args, **kwargs)
self.hasher.update(data)
+ # FIXME: rename (hash is a builtin)
def hash(self):
return self.hasher.hexdigest()
@@ -157,7 +158,7 @@ def create_chunk_2(rootdir, f, name, include):
stream = HashedOutputStream(f)
with tarfile.open(fileobj=stream, mode='w|') as tar:
- for filepath in sorted(paths):
+ for filepath in sorted(include):
if filepath == rootdir:
# I'm not sure how the ChunkBuilder.assemble_chunk_artifact()
# code path manages to avoid adding '.' to the tarfile, but it