Skip to content

Commit

Permalink
[frontend] fork only successful builds
Browse files Browse the repository at this point in the history
It can be temporary solution and may change. Problem is that we
cant fork runing builds as they are. Their state have to be changed
into pending. Also we probably should not fork importing builds at all.
  • Loading branch information
FrostyX committed Oct 4, 2016
1 parent cef4c22 commit bf8913e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/coprs_frontend/coprs/logic/complex_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def fork_copr(cls, copr, user, dstname, dstgroup=None):
builds_map = {}
for package in copr.packages:
fpackage = forking.fork_package(package, fcopr)
build = package.last_build()
build = package.last_build(successful=True)
if not build:
continue

Expand Down

0 comments on commit bf8913e

Please sign in to comment.