From a24c905f53788bf64746a48d56036f813950d7b2 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 23 Aug 2022 12:00:08 +0200 Subject: [PATCH] Fix 'osc up' on project level for scm packages --- osc/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osc/core.py b/osc/core.py index 3716281e..285bec43 100644 --- a/osc/core.py +++ b/osc/core.py @@ -5062,6 +5062,13 @@ def checkout_package(apiurl, project, package, os.putenv("OSC_VERSION", get_osc_version()) 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) + + # add package to /.obs/_packages + if not prj_obj: + prj_obj = Project(prj_dir) + prj_obj.set_state(package, ' ') + prj_obj.write_packages() + return isfrozen = False