From b50ea103ee25105e407e80b144f8489ba1ddd76b Mon Sep 17 00:00:00 2001 From: Richard Weickelt Date: Sat, 13 Feb 2021 02:31:12 +0100 Subject: Do not rely on leaked context variables The current QtScript implementation seems to leak variables of the prepare script context to invoked JS functions. This will become an error in the JS port. Change-Id: If4b43e6162b4c3ea1f1ec8f118474064dc9586c0 Reviewed-by: Ivan Komissarov --- share/qbs/modules/Exporter/pkgconfig/pkgconfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/qbs/modules/Exporter/pkgconfig/pkgconfig.js') diff --git a/share/qbs/modules/Exporter/pkgconfig/pkgconfig.js b/share/qbs/modules/Exporter/pkgconfig/pkgconfig.js index a3109d61d..093be4c4b 100644 --- a/share/qbs/modules/Exporter/pkgconfig/pkgconfig.js +++ b/share/qbs/modules/Exporter/pkgconfig/pkgconfig.js @@ -83,7 +83,7 @@ function collectAutodetectedData(topLevelProduct) || (value.length > installPrefix.length && value[installPrefix.length] !== '/')) { return quotedValue; } - return quotedValue.replace(product.qbs.installPrefix, "${prefix}"); + return quotedValue.replace(topLevelProduct.qbs.installPrefix, "${prefix}"); } function transformedValue(product, moduleName, propertyName) -- cgit v1.2.3