From a354d6c88206a708014d68ef46f02e238a36d4e3 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 9 Dec 2019 10:08:47 +0100 Subject: [PATCH] Always force accept into the API after checking for acceptable ourselves This removes the 2nd line of defense, but there is no API to accept multiple stagings at once to avoid the underlying problem. Fixes #2364 --- osclib/accept_command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osclib/accept_command.py b/osclib/accept_command.py index c7c5f780..ba6de31c 100644 --- a/osclib/accept_command.py +++ b/osclib/accept_command.py @@ -102,9 +102,9 @@ class AcceptCommand(object): print('delete links to packages pending deletion...') self.delete_linked() - opts = {} - if force: - opts['force'] = '1' + # we have checked ourselves and accepting one staging project creates a race + # for the other staging projects to appear building again + opts = { 'force': '1' } print('triggering staging accepts...') for project in staging_packages.keys():