]> git.tdb.fi Git - builder.git/commitdiff
Try other methods if the source path given by pkg-config is invalid
authorMikko Rasa <tdb@tdb.fi>
Sun, 22 Jul 2012 15:19:05 +0000 (18:19 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 22 Jul 2012 15:19:05 +0000 (18:19 +0300)
source/packagemanager.cpp

index 19b15a45e37de888a72e0a90057d862eaf19392a..fc198814591f3f90a70af0dedbd4636ec859b142 100644 (file)
@@ -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(...)