Change pkgname to appid for docomo request. PART1
[platform/framework/web/wrt-installer.git] / src / jobs / widget_install / task_widget_config.cpp
index 54a8f31..f47357c 100644 (file)
@@ -771,9 +771,16 @@ bool TaskWidgetConfig::fillWidgetConfig(WrtDB::WidgetRegisterInfo& pWidgetConfig
             }
         }
     }
-    if (!!configInfo.tizenId) {
-       if (pWidgetConfigInfo.pkgName != *configInfo.tizenId) {
-           LogError("Invalid archive - Tizen ID not same error");
+    if (!!configInfo.tizenAppId) {
+       if(DPL::ToUTF8String(pWidgetConfigInfo.tzAppid).compare(
+                   DPL::ToUTF8String(*configInfo.tizenAppId)) < 0) {
+           LogError("Invalid archive - Tizen App ID not same error");
+           return false;
+       }
+    }
+    if (!!configInfo.tizenPkgId) {
+       if (pWidgetConfigInfo.tzPkgid != *configInfo.tizenPkgId) {
+           LogError("Invalid archive - Tizen Pkg ID not same error");
            return false;
        }
     }