Skip to content

Commit

Permalink
Update osc/core.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dirk Mueller <[email protected]>
  • Loading branch information
adrianschroeter and dirkmueller authored Sep 11, 2024
1 parent 25cdb76 commit 511bc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3158,7 +3158,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
Expand Down

0 comments on commit 511bc31

Please sign in to comment.