From bf00e5eeacd85ae68d8930babf42fa0d54d2f742 Mon Sep 17 00:00:00 2001 From: UlrichB22 <97119703+UlrichB22@users.noreply.github.com> Date: Mon, 26 Aug 2024 22:22:52 +0200 Subject: [PATCH] import19: migrate links only if targetnamespace is specified --- src/moin/cli/migration/moin19/import19.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/moin/cli/migration/moin19/import19.py b/src/moin/cli/migration/moin19/import19.py index 87c44ea89..8953cbb16 100644 --- a/src/moin/cli/migration/moin19/import19.py +++ b/src/moin/cli/migration/moin19/import19.py @@ -224,7 +224,7 @@ def ImportMoin19(data_dir=None, markup_out=None, namespace=None): for link in itemlinks_19: if link in users_itemlist or link.split("/")[0] in users_itemlist: user_itemlinks2chg.append(link) - elif link not in custom_namespaces and link.split("/")[0] not in custom_namespaces: + elif target_namespace and link not in custom_namespaces and link.split("/")[0] not in custom_namespaces: namespace_itemlinks2chg.append(link) if len(user_itemlinks2chg) > 0: migrate_itemlinks(dom, NAMESPACE_USERS, user_itemlinks2chg)