Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 9e4bcece18b1f340fc29375e4d41aa50c694c03d Author: Richard Marko rmarko@fedoraproject.org Date: Thu Jan 23 12:37:59 2014 +0100
[cli] fix initial_pkgs and repos not sent to backend
Signed-off-by: Richard Marko rmarko@fedoraproject.org
copr_cli/subcommands.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/copr_cli/subcommands.py b/copr_cli/subcommands.py index da52f48..2b980ff 100644 --- a/copr_cli/subcommands.py +++ b/copr_cli/subcommands.py @@ -131,12 +131,12 @@ def create(name, chroots=[], description=None, instructions=None, copr_api_url = get_api_url() URL = '{0}/coprs/{1}/new/'.format(copr_api_url, user['username'])
- repos = None if type(repos) == list(): repos = ' '.join(repos) - initial_pkgs = None + if type(initial_pkgs) == list(): initial_pkgs = ' '.join(initial_pkgs) + data = {'name': name, 'repos': repos, 'initial_pkgs': initial_pkgs,