From 90c7ad546c84bbc0a00832990ae1c6c9a051542f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Tue, 27 Jun 2023 20:52:34 +0200 Subject: [PATCH] check_source: fix condition checking for for git packaging --- check_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_source.py b/check_source.py index cd1c90e7..f7e5b501 100755 --- a/check_source.py +++ b/check_source.py @@ -159,9 +159,9 @@ class CheckSource(ReviewBot.ReviewBot): meta = ET.fromstringlist(show_package_meta(self.apiurl, devel_project, devel_package)) scm_sync = meta.find('scmsync') if ( - not scm_sync or + (scm_sync is None) or ( - scm_sync and + (scm_sync is not None) and not scm_sync.text.startswith(f"https://src.opensuse.org/pool/{source_package}") and all(not source_project.startswith(allowed_src) for allowed_src in self.allowed_scm_submission_sources) )