From: hhk86.heo Date: Thu, 2 Nov 2017 09:06:07 +0000 (+0900) Subject: to use build.date in current version X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fdevel%2Ffwmup_things_sdk_api;p=platform%2Fcore%2Fservice%2Fcloud%2Fua-client.git to use build.date in current version Change-Id: I2f3c57827d6ec156e3415ecddbca394d8dbf495a --- diff --git a/src/fmwup_util_data.c b/src/fmwup_util_data.c index 4bc9b1e..1b6716b 100644 --- a/src/fmwup_util_data.c +++ b/src/fmwup_util_data.c @@ -21,7 +21,6 @@ static bool g_active_check = false; static pthread_mutex_t g_data_key_manager_mutex = PTHREAD_MUTEX_INITIALIZER; - int key_manager_set_data(const char *name, char *data) { if (!name || !data) { @@ -225,7 +224,8 @@ char *platform_get_data(const char *name) int system_ret = 0; if (g_strcmp0(name, FIRMWARE_PROPERTY_CURRENT_VERSION) == 0) { - system_ret = system_info_get_platform_string("http://tizen.org/feature/platform.version", &data); +// system_ret = system_info_get_platform_string("http://tizen.org/feature/platform.version", &data); + system_ret = system_info_get_platform_string("http://tizen.org/system/build.date", &data); if (SYSTEM_INFO_ERROR_NONE != system_ret) { ERR("system_info_get_platform_string() is failed[%d]", system_ret); } @@ -372,65 +372,6 @@ fmwup_data_s *fmwup_data_get_properties() fmwup_get_data->active_check = get_active_check(); - - - - - /* TODO: for test - check correct key */ - char *temp_char = NULL; - - if (system_info_get_platform_string("http://tizen.org/system/manufacturer", &temp_char) - != SYSTEM_INFO_ERROR_NONE) { - ERR("system_info_get_platform_string() is failed"); - } else { - INFO("http://tizen.org/system/manufacturer[%s]", temp_char); - G_FREE(temp_char); - } - - if (system_info_get_platform_string("http://tizen.org/system/model_name", &temp_char) - != SYSTEM_INFO_ERROR_NONE) { - ERR("system_info_get_platform_string() is failed"); - } else { - INFO("http://tizen.org/system/model_name[%s]", temp_char); - G_FREE(temp_char); - } - - if (system_info_get_platform_string("http://tizen.org/system/build.version.release", &temp_char) - != SYSTEM_INFO_ERROR_NONE) { - ERR("system_info_get_platform_string() is failed"); - } else { - INFO("http://tizen.org/system/build.version.release[%s]", temp_char); - G_FREE(temp_char); - } - - if (system_info_get_platform_string("http://tizen.org/system/platform.name", &temp_char) - != SYSTEM_INFO_ERROR_NONE) { - ERR("system_info_get_platform_string() is failed"); - } else { - INFO("http://tizen.org/system/platform.name[%s]", temp_char); - G_FREE(temp_char); - } - - if (system_info_get_platform_string("http://tizen.org/feature/platform.version", &temp_char) - != SYSTEM_INFO_ERROR_NONE) { - ERR("system_info_get_platform_string() is failed"); - } else { - INFO("http://tizen.org/feature/platform.version[%s]", temp_char); - G_FREE(temp_char); - } - - if (system_info_get_platform_string("http://tizen.org/feature/platform.version.name", &temp_char) - != SYSTEM_INFO_ERROR_NONE) { - ERR("system_info_get_platform_string() is failed"); - } else { - INFO("http://tizen.org/feature/platform.version.name[%s]", temp_char); - G_FREE(temp_char); - } - - - - - FN_END; return fmwup_get_data; }