Merge pull request #365 from DimStar77/rebuild-only-existing

accept_command: verify if project:Rebuild exists before attempting to…
This commit is contained in:
Ludwig Nussel 2015-07-03 09:40:53 +02:00
commit c2f948ef24

View File

@ -153,7 +153,8 @@ def do_staging(self, subcmd, opts, *args):
return
cmd.accept_other_new()
cmd.update_factory_version()
cmd.sync_buildfailures()
if api.item_exists(api.crebuild):
cmd.sync_buildfailures()
elif cmd == 'unselect':
UnselectCommand(api).perform(args[1:])
elif cmd == 'select':