From df81c0b33cdd48b7c5665cfb9962334e78fce5b5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 4 Jan 2023 12:38:30 +0200 Subject: [PATCH] Make PackageManager::run_pkgconfig fail on Windows ... instead of returning an empty string which would be interpreted as a successful result and used to create bogus binary packages. --- source/lib/packagemanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/lib/packagemanager.cpp b/source/lib/packagemanager.cpp index 5e12422..7bf5468 100644 --- a/source/lib/packagemanager.cpp +++ b/source/lib/packagemanager.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -160,7 +161,7 @@ string PackageManager::run_pkgconfig(const string &pkg, const string &what) #else (void)pkg; (void)what; - return string(); + throw unsupported("run_pkgconfig"); #endif } -- 2.45.2