From 1e406373b33a5eb3e881fdd95e9ce33881fae2cd Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 22 Jul 2012 18:19:05 +0300 Subject: [PATCH] Try other methods if the source path given by pkg-config is invalid --- source/packagemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/packagemanager.cpp b/source/packagemanager.cpp index 19b15a4..fc19881 100644 --- a/source/packagemanager.cpp +++ b/source/packagemanager.cpp @@ -141,7 +141,7 @@ FS::Path PackageManager::get_package_location(const string &name) { // Try to get source directory with pkgconfig string srcdir = strip(run_pkgconfig(name, "source")); - if(!srcdir.empty()) + if(!srcdir.empty() && FS::exists(FS::Path(srcdir)/"Build")) return srcdir; } catch(...) -- 2.45.2