accept_command: verify if project:Rebuild exists before attempting to retrigger based on differences

This commit is contained in:
Dominique Leuenberger 2015-07-03 09:26:01 +02:00
parent 37ecf38f8a
commit 957955b0d6

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':