1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-27 15:06:15 +01:00

Fix 'osc up' on project level for scm packages

This commit is contained in:
Daniel Mach 2022-08-23 12:00:08 +02:00
parent 31b804eeec
commit a24c905f53

View File

@ -5062,6 +5062,13 @@ def checkout_package(apiurl, project, package,
os.putenv("OSC_VERSION", get_osc_version()) os.putenv("OSC_VERSION", get_osc_version())
run_external(['/usr/lib/obs/service/obs_scm_bridge', '--outdir', directory, '--url', scm_url]) run_external(['/usr/lib/obs/service/obs_scm_bridge', '--outdir', directory, '--url', scm_url])
Package.init_package(apiurl, project, package, directory, size_limit, meta, progress_obj, scm_url) Package.init_package(apiurl, project, package, directory, size_limit, meta, progress_obj, scm_url)
# add package to <prj>/.obs/_packages
if not prj_obj:
prj_obj = Project(prj_dir)
prj_obj.set_state(package, ' ')
prj_obj.write_packages()
return return
isfrozen = False isfrozen = False