X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/409d130ddcc4b76def5fa8d61d2584725c61152a..ebb2559b3a09636ff687316bbe512e0e8a86b168:/sdk/python/arvados/commands/put.py diff --git a/sdk/python/arvados/commands/put.py b/sdk/python/arvados/commands/put.py index 133b363827..714281cc95 100644 --- a/sdk/python/arvados/commands/put.py +++ b/sdk/python/arvados/commands/put.py @@ -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. @@ -811,6 +811,9 @@ def main(arguments=None, stdout=sys.stdout, stderr=sys.stderr): if args.stream or args.raw: logger.error("Cannot use --name with --stream or --raw") sys.exit(1) + elif args.update_collection: + logger.error("Cannot use --name with --update-collection") + sys.exit(1) collection_name = args.name else: collection_name = "Saved at {} by {}@{}".format(