From: Mikko Rasa Date: Sun, 22 Jul 2012 15:19:05 +0000 (+0300) Subject: Try other methods if the source path given by pkg-config is invalid X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1e406373b33a5eb3e881fdd95e9ce33881fae2cd;p=builder.git Try other methods if the source path given by pkg-config is invalid --- 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(...)