Marisa trie needs a real file to read from a stream, use the bytes version instead.

This commit is contained in:
yackob03 2013-10-20 02:39:45 -04:00
parent cccfe29c77
commit cf1b545dee

View file

@ -358,8 +358,8 @@ def process_image_changes(namespace, repository, image_id):
# Read in the collapsed layer state of the filesystem for the parent
parent_trie = changes.empty_fs()
if parent_trie_path:
with store.stream_read_file(parent_trie_path) as parent_trie_stream:
parent_trie.read(parent_trie_stream)
parent_trie_bytes = store.get_content(parent_trie_path)
parent_trie.frombytes(parent_trie_bytes)
# Read in the file entries from the layer tar file
layer_path = store.image_layer_path(namespace, repository, image_id)