From 8b1ae8166c82a878cf0f6d74748ec764fbf0e54e Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Thu, 1 Aug 2024 00:38:43 +0200 Subject: [PATCH] flatpak-node-generator: Apply patch for lockfile v3 local sources See https://github.com/flatpak/flatpak-builder-tools/pull/378 --- .../flatpak_node_generator/providers/npm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py b/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py index a60cb08e..08d14efd 100644 --- a/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py +++ b/packaging/flatpak/flatpak-builder-tools/flatpak_node_generator/providers/npm.py @@ -110,7 +110,7 @@ def _process_packages_v2( source: PackageSource package_json_path = lockfile.parent / install_path / 'package.json' if ( - 'node_modules' not in package_json_path.parents + 'node_modules' not in package_json_path.parts[:-1] and package_json_path.exists() ): source = LocalSource(path=install_path)