mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 21:28:42 +02:00
Raise an exception if obs-scm-bridge fails
Otherwise the checkout is incomplete
This commit is contained in:
@@ -3132,7 +3132,8 @@ def run_obs_scm_bridge(url: str, target_dir: str):
|
||||
raise oscerr.OscIOError(None, "Install the obs-scm-bridge package to work on packages managed in scm (git)!")
|
||||
env = os.environ.copy()
|
||||
env["OSC_VERSION"] = get_osc_version()
|
||||
run_external([conf.config.obs_scm_bridge_cmd, "--outdir", target_dir, "--url", url], env=env)
|
||||
if run_external([conf.config.obs_scm_bridge_cmd, "--outdir", target_dir, "--url", url], env=env) != 0:
|
||||
raise oscerr.OscIOError(None, "obs-scm-bridge failed")
|
||||
|
||||
|
||||
def checkout_package(
|
||||
|
Reference in New Issue
Block a user