10383: Fix for making arv-keep-get tests pass.
authorLucas Di Pentima <lucas@curoverse.com>
Fri, 16 Dec 2016 21:54:18 +0000 (18:54 -0300)
committerLucas Di Pentima <lucas@curoverse.com>
Fri, 16 Dec 2016 21:54:18 +0000 (18:54 -0300)
sdk/python/arvados/commands/put.py

index 38e43496149ca2786580c257f729242695071c36..714281cc95b0475831f1761470c9cf1b5e91cce5 100644 (file)
@@ -427,7 +427,7 @@ class ArvPutUploadJob(object):
             # bytes_written count is correct.
             for f in self.collection_file_paths(self._local_collection,
                                                 path_prefix=""):
-                if f != 'stdin' and not f in self._file_paths:
+                if f != 'stdin' and f != self.filename and not f in self._file_paths:
                     self._local_collection.remove(f)
             # Update bytes_written from current local collection and
             # report initial progress.