From 8585d0dfe8b52bede91a085051713656e8d39718 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Thu, 18 Dec 2025 12:29:37 +0000 Subject: [PATCH] import UBI nodejs-packaging-2021.06-5.module+el8.10.0+23591+ff544af9 --- SOURCES/nodejs.req | 4 ++-- SPECS/nodejs-packaging.spec | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/SOURCES/nodejs.req b/SOURCES/nodejs.req index 129606b..c89a3f7 100755 --- a/SOURCES/nodejs.req +++ b/SOURCES/nodejs.req @@ -633,9 +633,9 @@ def has_only_bundled_dependencies(module_dir_path): for basename in os.listdir(dependency_root_path) ) bundled_dependency_iter = ( - os.path.realpath(path) + path for path in dependency_path_iter - if not os.path.islink(path) or path.startswith(module_root_path) + if not os.path.islink(path) or os.path.realpath(path).startswith(module_root_path) ) return any(bundled_dependency_iter) diff --git a/SPECS/nodejs-packaging.spec b/SPECS/nodejs-packaging.spec index dacd509..29862eb 100644 --- a/SPECS/nodejs-packaging.spec +++ b/SPECS/nodejs-packaging.spec @@ -2,7 +2,7 @@ Name: nodejs-packaging Version: 2021.06 -Release: 4%{?dist} +Release: 5%{?dist} Summary: RPM Macros and Utilities for Node.js Packaging BuildArch: noarch License: MIT @@ -83,6 +83,9 @@ install -Dpm0755 nodejs-packaging-bundler %{buildroot}%{_bindir}/nodejs-packagin %changelog +* Fri Oct 17 2025 Andrei Radchenko - 2021.06-5 +- nodejs.req properly detect bundled deps + * Thu Jan 20 2022 Stephen Gallagher - 2021.06-4 - NPM bundler: also find namespaced bundled dependencies