Fixed required version issue
authorSoyoung Kim <sy037.kim@samsung.com>
Tue, 19 Feb 2013 05:00:15 +0000 (14:00 +0900)
committerGerrit Code Review <gerrit2@kim11>
Wed, 20 Feb 2013 09:44:20 +0000 (18:44 +0900)
[Issue#] TDIS-2699
[Problem] widget application is able to be installed successfully with invalid/notexist version.
[Cause] version check is wrong.
[Solution] Fixed false when version is with invalid/notexist.
[SCMRequest] N/A

Change-Id: Iede493d03a9dd69231cbecdfee023b51a2fa42e1

src/jobs/widget_install/task_widget_config.cpp

index 13fa549..54462a6 100644 (file)
@@ -586,7 +586,7 @@ bool TaskWidgetConfig::isMinVersionCompatible(
     if (widgetVersion.IsNull() || (*widgetVersion).empty()) {
         LogWarning("minVersion attribute is empty. WRT assumes platform "
                    "supports this widget.");
-        return true;
+        return false;
     }
 
     //Parse widget version
@@ -595,7 +595,7 @@ bool TaskWidgetConfig::isMinVersionCompatible(
                             minorWidget, microWidget))
     {
         LogWarning("Invalid format of widget version string.");
-        return true;
+        return false;
     }
 
     //Parse supported version