1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-08 22:06:16 +01:00

Update osc/core.py

Co-authored-by: Dirk Mueller <dmueller@suse.com>
This commit is contained in:
Adrian Schröter 2024-09-11 12:49:34 +02:00 committed by Daniel Mach
parent 8216118278
commit f4298b8ed7

View File

@ -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