This causes syntax error:
IndentationError: unexpected indent
Please use "copr-build" command instead to be consistent with other build types (container-build, scratch-build).
pdb seems to be left after debugging. Remove it.
Don't print the command by default as I believe this isn't useful information for the end user.
If you still want ability to show the command which was used here do this if --verbose or --debug was set. I prefer the later one though.
Please see inline comments.
Also please add your new command with the options to bash-completion (src/rpkg.bash).
Updated according your comments.
Add your new command with the options to bash-completion (src/rpkg.bash).
Also please rebase the changes on the top of master HEAD.
This ignored exception causes problems with debugging:
$ fedpkg copr-build pbabinca/demo Wrote: /home/pbabinca/downstream/fedora/rpkg/rpkg-1.39-1.el6.src.rpm Something went wrong: Error: Invalid request: bad request parameters
$ fedpkg copr-build pbabinca/demo
Wrote: /home/pbabinca/downstream/fedora/rpkg/rpkg-1.39-1.el6.src.rpm
Something went wrong: Error: Invalid request: bad request parameters
a) Either remove lines 13 to 15 (preferred), b) or somehow detect if the build failed and catch only known errors, c) or test existence of self.verbose or self.debug parameters and its non-False values. And in that case don't eat the exception.
And finally please not in the commit message you introduce new dependency on copr package.
corrected, rebased, hopefully ready to merge.