Skip to content

Commit

Permalink
Merge pull request #2979 from dcermak/fix-check-src
Browse files Browse the repository at this point in the history
check_source: fix condition checking for <scmsync> for git packaging
  • Loading branch information
dirkmueller committed Jun 27, 2023
2 parents 8db5f62 + 90c7ad5 commit 8b1c308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def check_source_submission(self, source_project, source_package, source_revisio
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)
)
Expand Down

0 comments on commit 8b1c308

Please sign in to comment.