From f0acdb75922511e79530b78d8661c8f3d1551679 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Jan 09 2023 01:28:56 +0000 Subject: Fix skipping NVR check with autorelease Previously, this would always check if the NVR was built in Koji previously with %autorelease, which is known not to work reliably. Related: fedora-infra/rpmautospec#273 Signed-off-by: Nils Philippsen --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index 1595344..8b20bc0 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -2438,7 +2438,7 @@ class Commands(object): # See if this build has been done. Does not check builds within # a chain, or if the %autorelease macro is used. - if (nvr_check or self.uses_autorelease) and not scratch and not url.endswith('.src.rpm'): + if nvr_check and not scratch and not url.endswith('.src.rpm') and not self.uses_autorelease: build = self.kojisession.getBuild(self.nvr) if build: if build['state'] == 1: