Update change log and spec for wrt-plugins-tizen_0.4.36
[platform/framework/web/wrt-plugins-tizen.git] / src / Package / PackageManager.cpp
index ab6a62e..dac54e2 100644 (file)
@@ -234,8 +234,6 @@ static PackageInformation* create_pkg_info(pkgmgrinfo_pkginfo_h handle)
        char* name = NULL;
        char* iconPath = NULL;
        char* version = NULL;
-       int totalSize = 0;
-       int dataSize = 0;
        int lastModified = 0;
        char* type = NULL;
        char* author = NULL;
@@ -273,20 +271,6 @@ static PackageInformation* create_pkg_info(pkgmgrinfo_pkginfo_h handle)
                pkgInfo->m_version = version;
        }
 
-       ret = pkgmgrinfo_pkginfo_get_total_size(handle, &totalSize);
-       if (ret != PMINFO_R_OK) {
-               LoggerE("Fail to get totalSize");
-       } else {
-               pkgInfo->m_totalSize = totalSize;
-       }
-
-       ret = pkgmgrinfo_pkginfo_get_data_size(handle, &dataSize);
-       if (ret != PMINFO_R_OK) {
-               LoggerE("Fail to get dataSize");
-       } else {
-               pkgInfo->m_dataSize = dataSize;
-       }
-
        ret = pkgmgrinfo_pkginfo_get_installed_time(handle, &lastModified);
        if (ret != PMINFO_R_OK) {
                LoggerE("Fail to get lastModified");
@@ -334,6 +318,8 @@ static PackageInformation* create_pkg_info(pkgmgrinfo_pkginfo_h handle)
                LoggerE("Cannot destroy package info");
        }       
 
+       // REMARK: data size and total size is set at first access time
+
        // REMARK: do not destroy handle. because handle is comes from outside!!
        return pkgInfo;
 }