Skip to content

Commit

Permalink
frontend: don't touch skipped chroots when import is completed
Browse files Browse the repository at this point in the history
This is needed because otherwise backend can set some chroots as
skipped after the SRPM build is completed but then DistGit imports the
package and sets all (even the skipped) chroots as pending.
  • Loading branch information
FrostyX committed Jun 12, 2023
1 parent d2d9853 commit e196fd7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ def dist_git_upload_completed():
for branch, git_hash in flask.request.json.get("branch_commits", {}).items():
branch_chroots = BuildsLogic.get_buildchroots_by_build_id_and_branch(build_id, branch)
for ch in branch_chroots:
collected_branch_chroots.append((ch.task_id))
if ch.status == StatusEnum("skipped"):
continue
ch.status = StatusEnum("pending")
ch.git_hash = git_hash
db.session.add(ch)
collected_branch_chroots.append((ch.task_id))

final_source_status = StatusEnum("succeeded")
for ch in build.build_chroots:
Expand Down

0 comments on commit e196fd7

Please sign in to comment.