From 498c9aa9f1f944e885a3a26c83746e2e41326ca8 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 27 Jun 2014 10:57:24 -0400 Subject: [PATCH] Handle zero-length streams that contain zero-length files. refs #3084 --- sdk/python/arvados/collection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/python/arvados/collection.py b/sdk/python/arvados/collection.py index 87923489f8..a1195bf0a6 100644 --- a/sdk/python/arvados/collection.py +++ b/sdk/python/arvados/collection.py @@ -41,6 +41,9 @@ def normalize_stream(s, stream): blocks[b[arvados.LOCATOR]] = streamoffset streamoffset += b[arvados.BLOCKSIZE] + if len(stream_tokens) == 1: + stream_tokens.append(config.EMPTY_BLOCK_LOCATOR) + for f in sortedfiles: current_span = None fout = f.replace(' ', '\\040') -- 2.30.2