Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 219e1dfcc39daa5368f7ac52bf694188785d9fe4
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 7 10:32:17 2013 +0200
do not create list of list
nargs plus append will create list of list, we want just list.
addressing:
Traceback (most recent call last):
File "/usr/bin/copr-cli", line 9, in <module>
load_entry_point('copr-cli==0.1.0', 'console_scripts',
'copr-cli')()
File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 111, in
main
arg.func(arg)
File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 21, in
action_build
args.memory, args.timeout)
File "/usr/lib/python2.7/site-packages/copr_cli/subcommands.py", line 172,
in build
data = {'pkgs': ' '.join(pkgs),
TypeError: sequence item 0: expected string, list found
---------------------------------------------------------------
copr_cli/main.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/copr_cli/main.py b/copr_cli/main.py
index 449a3fa..ca29017 100644
--- a/copr_cli/main.py
+++ b/copr_cli/main.py
@@ -91,7 +91,7 @@ def setup_parser():
parser_build.add_argument('copr',
help='The copr repo to build the package in'
)
- parser_build.add_argument('pkgs', nargs='+',
action='append')
+ parser_build.add_argument('pkgs', nargs='+')
parser_build.add_argument('--memory', dest='memory',
help="")
parser_build.add_argument('--timeout', dest='timeout',