Description of problem:
When calling "copr-cli create" without the --chroot parameter it crashes with an TypeError
Version-Release number of selected component (if applicable):
Call "copr-cli cleate test"
Steps to Reproduce:
1. Configure your copr API key in ~/.config/copr
2. Execute "copr-cli cleate test"
Program crashes with:
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
File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 33, in action_create
File "/usr/lib/python2.7/site-packages/copr_cli/subcommands.py", line 146, in create
for chroot in chroots:
TypeError: 'NoneType' object is not iterable
Copr should be created without a manually configured chroot, or the program should show an error message, that the --chroot parameter is obligatory.
Created attachment 823993 [details]
patch for subcommand.py
The command to reproduce is:
copr-cli create test
/ it take me some time to decipher that typo :) /
In fact at least one chroot must be selected. I added there check to print errror if none chroots is selected:
copr-cli create hkljhklj
Error: At least one chroot must be selected
Commited in upstream as 4ef718d
copr-1.15-1.fc19 has been submitted as an update for Fedora 19.
copr-1.15-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing copr-1.15-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
copr-1.15-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
copr-1.15-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.