diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-05-09 15:18:33 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-05-09 15:18:33 +0000 |
commit | c6da8346b44920aa8fe3af37d30748bb915a68d0 (patch) | |
tree | 4228f108e0befe3ffd0dd1a65a0e7ed1da08acfd | |
parent | ebe16fa8ab9b0caab8231ea453c446499a7b25ba (diff) | |
download | morph-c6da8346b44920aa8fe3af37d30748bb915a68d0.tar.gz |
bins fixups
-rw-r--r-- | morphlib/bins.py | 3 |
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 |