From 0b63d076a60a0f7a98c24b371363e8f5feaf06a355fca4d44d02ebfe736acd39 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Thu, 16 May 2024 13:32:09 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs22?expand=0&rev=4 --- versioned.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/versioned.patch b/versioned.patch index b179ebd..834c145 100644 --- a/versioned.patch +++ b/versioned.patch @@ -30,7 +30,7 @@ Index: node-v22.1.0/tools/install.py def package_files(options, action, name, bins): - target_path = os.path.join(libdir(options), 'node_modules', name) -+ target_path = os.path.join(libdir(options), 'node_modules', name + '21') ++ target_path = os.path.join(libdir(options), 'node_modules', name + '22') # don't install npm if the target path is a symlink, it probably means # that a dev version of npm is installed there @@ -39,7 +39,7 @@ Index: node-v22.1.0/tools/install.py action(options, [link_path], os.path.join('bin', bin_name)) elif action == install: - try_symlink(options, os.path.join('..', libdir(options), 'node_modules', name, bin_target), link_path) -+ try_symlink(options, os.path.join('..', libdir(options), 'node_modules', name + '21', bin_target), link_path) ++ try_symlink(options, os.path.join('..', libdir(options), 'node_modules', name + '22', bin_target), link_path) else: assert 0 # unhandled action type