From f5dccce6753f2a742d6dfe031f68b0ab4abb8967 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Jul 21 2020 17:18:52 +0000 Subject: ftbfs-fti: Exit early when skipping bugs Signed-off-by: Igor Raits --- diff --git a/scripts/ftbfs-fti/follow-policy.py b/scripts/ftbfs-fti/follow-policy.py index 7121cfd..b0a2281 100755 --- a/scripts/ftbfs-fti/follow-policy.py +++ b/scripts/ftbfs-fti/follow-policy.py @@ -100,11 +100,8 @@ This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fes f"→ 4 weeks did not pass since second needinfo ({needinfo_after_four_weeks}), skipping…", file=sys.stderr, ) + return except StopIteration: - print( - f"→ 3 weeks did not pass since first needinfo ({needinfo_after_week}), skipping…", - file=sys.stderr, - ) if NOW - needinfo_after_week >= datetime.timedelta(weeks=3): print("Asking for another needinfo") bzupdate = bz.build_update( @@ -113,6 +110,12 @@ This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fes This is the second reminder (step 4 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs).""", flags=[flag], ) + else: + print( + f"→ 3 weeks did not pass since first needinfo ({needinfo_after_week}), skipping…", + file=sys.stderr, + ) + return if bzupdate is not None: result = bz.update_bugs([bug.id], bzupdate)