Skip to content

Commit

Permalink
client: push --publish --wait-update implies --wait
Browse files Browse the repository at this point in the history
Previously you had to specify both for --wait-update to work, which
makes no sense.
  • Loading branch information
alexlarsson committed Nov 8, 2019
1 parent c25ee7b commit 5252cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ async def push_command(session, args):
commit_job = await commit_build(session, args.build_url, args.end_of_life, args.end_of_life_rebase, args.publish or args.wait, args.token)

if args.publish:
publish_job = await publish_build(session, args.build_url, args.wait, args.token)
publish_job = await publish_build(session, args.build_url, args.wait or args.wait_update, args.token)
update_job_id = publish_job.get("results", {}).get("update-repo-job", None)
if update_job_id:
print("Queued repo update job %d" %(update_job_id))
Expand All @@ -572,7 +572,7 @@ async def commit_command(session, args):
return job

async def publish_command(session, args):
job = await publish_build(session, args.build_url, args.wait, args.token)
job = await publish_build(session, args.build_url, args.wait or args.wait_update, args.token)
update_job_id = job.get("results", {}).get("update-repo-job", None)
if update_job_id:
print("Queued repo update job %d" %(update_job_id))
Expand Down

0 comments on commit 5252cb3

Please sign in to comment.