#9644 For second mass rebuild we have to skip completed builds
Merged 11 months ago by mohanboddu. Opened 11 months ago by mohanboddu.
mohanboddu/releng mass-rebuild-second-run  into  master

@@ -88,9 +88,9 @@ 

          print('Skipping %s, package is explicitely skipped')



-     # Query to see if a build has already been attempted

-     # this version requires newer koji:

-     builds = kojisession.listBuilds(id, completeAfter=massrebuild['epoch'])

+     # Query to see if a build has already successfully completed

+     # state = 1 is successfully completed builds

+     builds = kojisession.listBuilds(id, completeAfter=massrebuild['epoch'], state=1)

      newbuild = False

      # Check the builds to make sure they were for the target we care about

      for build in builds:

completeAfter returns all the builds that are completed whether they are
failed or not, we are only interested in successful builds to skip them

Signed-off-by: Mohan Boddu mboddu@bhujji.com

Pull-Request has been merged by mohanboddu

11 months ago