diff --git a/README.rst b/README.rst index 455b815a..b5ef2ec0 100644 --- a/README.rst +++ b/README.rst @@ -212,6 +212,12 @@ ${custom}_provides_ban Controlling the build process ------------------------------ +invalid_release_sig + This file contains the current version that will **not** have its package + file be processed for signature verification (overriding the config_opt). + This file will be automatically deleted after a new release and is intended + to override a single bad signed release. + extra_sources This file contains a list of extra files to be added to the ``.spec`` and optionally installed as well. Each non-blank and non-comment line should start diff --git a/autospec/config.py b/autospec/config.py index 953c3ba7..ff9d66d8 100644 --- a/autospec/config.py +++ b/autospec/config.py @@ -837,6 +837,18 @@ def parse_config_files(self, bump, filemanager, version, requirements): except Exception as e: print_warning(f"Unable to remove buildreq_cache file: {e}") + invalid_release_sig_file = os.path.join(self.download_path, "invalid_release_sig") + content = self.read_conf_file(invalid_release_sig_file) + if content and content[0] == version: + self.config_opts['verify_required'] = False + else: + try: + os.unlink(invalid_release_sig_file) + except FileNotFoundError: + pass + except Exception as e: + print_warning(f"Unable to remove invalid_release_sig file: {e}") + content = self.read_conf_file(os.path.join(self.download_path, "pkgconfig_add")) for extra in content: extra = pkgconfig_re.sub(r'\1', extra)