From 25cdb760ecefe3a214759ca76354ff26c66d2ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 11 Sep 2024 12:49:22 +0200 Subject: [PATCH] Update osc/commandline.py Co-authored-by: Dirk Mueller --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 842628136..818a79a2a 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5363,7 +5363,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())