]> git.tdb.fi Git - builder.git/commitdiff
Fix recognition of versioned msp package directories
authorMikko Rasa <tdb@tdb.fi>
Sun, 22 Jul 2012 15:00:47 +0000 (18:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 22 Jul 2012 15:00:47 +0000 (18:00 +0300)
source/packagemanager.cpp

index 86047bfa76ae1140e462f54ac082a6149143880e..19b15a45e37de888a72e0a90057d862eaf19392a 100644 (file)
@@ -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;
        }