1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Package name logic improved;

Aditional tests added;
Some bug fixes with different __SUPPORT_XXX defines.
This commit is contained in:
Alexander Smorkalov
2012-07-12 08:02:41 +00:00
parent 2aacff4c39
commit 422f650b20
8 changed files with 99 additions and 44 deletions
@@ -63,10 +63,16 @@ string CommonPackageManager::GetPackagePathByVersion(const std::string& version,
for (vector<PackageInfo>::iterator it = all_packages.begin(); it != all_packages.end(); ++it)
{
LOGD("Check version \"%s\" compatibility with \"%s\"\n", version.c_str(), it->GetVersion().c_str());
if (IsVersionCompatible(version, it->GetVersion()))
{
LOGD("Compatible");
packages.push_back(*it);
}
else
{
LOGD("NOT Compatible");
}
}
if (!packages.empty())