[ARVADOS] updated: 199e88432b2b006e46281a74c0fec33700cd2167
git at public.curoverse.com
git at public.curoverse.com
Tue Jul 28 13:33:42 EDT 2015
Summary of changes:
sdk/python/arvados/commands/put.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
via 199e88432b2b006e46281a74c0fec33700cd2167 (commit)
from 229773c2aa3ddc798ae4eb1eff62f8f77db85391 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 199e88432b2b006e46281a74c0fec33700cd2167
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Tue Jul 28 13:34:34 2015 -0400
6681: Disallow additional files on command line when uploading from arv-put.
diff --git a/sdk/python/arvados/commands/put.py b/sdk/python/arvados/commands/put.py
index 8871676..8297a22 100644
--- a/sdk/python/arvados/commands/put.py
+++ b/sdk/python/arvados/commands/put.py
@@ -181,7 +181,9 @@ def parse_arguments(arguments):
and os.isatty(sys.stderr.fileno())):
args.progress = True
- if args.paths == ['-']:
+ if '-' in args.paths:
+ if len(args.paths) > 1:
+ arg_parser.error("Cannot supply additional files to upload when piping from stdin.")
args.resume = False
if not args.filename:
args.filename = 'stdin'
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list