From 7485a0533fe3a4dab5fb81152faa1b095365b17c Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Jul 31 2020 23:14:34 +0000 Subject: Use completeAfter instead of createAfter For second mass rebuild, we need to check if the build is completed or not instead of created or not. Since the build is definitely created after the epoch, we need to check if the build is completed or not. Signed-off-by: Mohan Boddu --- diff --git a/scripts/mass-rebuild-second-run.py b/scripts/mass-rebuild-second-run.py index 684000c..cd70282 100755 --- a/scripts/mass-rebuild-second-run.py +++ b/scripts/mass-rebuild-second-run.py @@ -90,7 +90,7 @@ for pkg in pkgs: # Query to see if a build has already been attempted # this version requires newer koji: - builds = kojisession.listBuilds(id, createdAfter=massrebuild['epoch']) + builds = kojisession.listBuilds(id, completeAfter=massrebuild['epoch']) newbuild = False # Check the builds to make sure they were for the target we care about for build in builds: