SHA256
1
0
forked from pool/nodejs22
Adam Majer 2024-05-16 13:32:09 +00:00 committed by Git OBS Bridge
parent 78189258da
commit 2c20206177

View File

@ -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