From: Mikko Rasa Date: Sun, 22 Jul 2012 15:00:47 +0000 (+0300) Subject: Fix recognition of versioned msp package directories X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1324d8e99c6fa3fa11db1a90fb0b9fc23c490247;p=builder.git Fix recognition of versioned msp package directories --- diff --git a/source/packagemanager.cpp b/source/packagemanager.cpp index 86047bf..19b15a4 100644 --- a/source/packagemanager.cpp +++ b/source/packagemanager.cpp @@ -171,7 +171,7 @@ FS::Path PackageManager::get_package_location(const string &name) if(!base.compare(0, dash, name)) return *i; - else if(msp && !base.compare(0, dash-3, name, 3, string::npos)) + else if(msp && !base.compare(0, dash, name, 3, string::npos)) return *i; }