From 338e8e8c622e19cac01f8b4608ab56a9f967e988 Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Tue, 17 Mar 2026 15:39:54 +0100 Subject: [PATCH] Allow copying from scmsync Fixes: ade04260 ("Support copying from an scmsync source, when target exists.") The 'when target exists' restriction is superfluous. Copying was never about tracking the source, SCM or otherwise. --- osc/core.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/osc/core.py b/osc/core.py index be5eb9daa..d69347c1e 100644 --- a/osc/core.py +++ b/osc/core.py @@ -3869,14 +3869,7 @@ def copy_pac( if force_meta_update or not found: new_meta = meta - if new_meta: - # we are about to create a new package instance. be sure we don't blindly copy scm sources - # instead hinting the user to think about is setup. - root = xml_fromstring(b''.join(src_meta)) - if root.find("scmsync") is not None: - print("Note: the source is managed via SCM. You may want to reference directly to the same scm instead?") - return - else: + if not new_meta: # destination exists, we copy from any source, but avoid the backend error # when trying to copy on an scmsync package. dst_meta = show_package_meta(dst_apiurl, dst_project, dst_package)