#576 [frontend] return the correct status for SRPM fail (fix #513)
Merged 5 years ago by msuchy. Opened 5 years ago by frostyx.
copr/ frostyx/copr unknown-status-for-failed  into  master

@@ -864,7 +864,7 @@ 

          if self.canceled:

              return StatusEnum("canceled")

  

-         use_src_statuses = ["starting", "pending", "running"]

+         use_src_statuses = ["starting", "pending", "running", "failed"]

          if self.source_status in [StatusEnum(s) for s in use_src_statuses]:

              return self.source_status

  

When a build fails during SRPM build phase, it doesn't get its
BuildChroots created, thus we cannot decide the status from them.

When SRPM build phase fails, the build itself is finished and failed.

rebased onto b84494b

5 years ago

Pull-Request has been merged by msuchy

5 years ago