Marisa trie needs a real file to read from a stream, use the bytes version instead.
This commit is contained in:
parent
cccfe29c77
commit
cf1b545dee
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue