From f4298b8ed74aac75ec66b5401424c3cfcb3057af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 11 Sep 2024 12:49:34 +0200 Subject: [PATCH] Update osc/core.py Co-authored-by: Dirk Mueller --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 4eb236d65..265f88360 100644 --- a/osc/core.py +++ b/osc/core.py @@ -3152,7 +3152,7 @@ def checkout_package( meta_data = b''.join(show_package_meta(apiurl, project, package)) root = ET.fromstring(meta_data) scmsync_element = root.find("scmsync") - if native_obs_package is False and scmsync_element is not None and scmsync_element.text is not None: + if not native_obs_package and scmsync_element is not None and scmsync_element.text is not None: if not os.path.isfile('/usr/lib/obs/service/obs_scm_bridge'): raise oscerr.OscIOError(None, 'Install the obs-scm-bridge package to work on packages managed in scm (git)!') scm_url = scmsync_element.text