diff --git a/osc/commandline.py b/osc/commandline.py index 74529ce68..318cb557f 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5120,7 +5120,7 @@ def do_checkout(self, subcmd, opts, *args): show_project_meta(apiurl, project) scm_url = show_scmsync(apiurl, project) - if scm_url is not None and opts.native_obs_package is False: + if scm_url is not None and not opts.native_obs_package: 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)!') os.putenv("OSC_VERSION", get_osc_version())