client_delta_path = g_strjoin("/", APP_SHARED_DIR, appid, APP_SHARED_DATA, FOTA_DELTA_FILENAME, NULL);
if (!g_file_test(client_delta_path, G_FILE_TEST_EXISTS)) {
- _FLOGI("%s doesn't have delta.tar", appid);
- status = -2;
- goto execute_destroy;
+ gchar *tmp_client_delta_path = client_delta_path;
+ client_delta_path = g_strconcat(tmp_client_delta_path, ".gz", NULL);
+ free(tmp_client_delta_path);
+
+ if (!g_file_test(client_delta_path, G_FILE_TEST_EXISTS)) {
+ _FLOGI("%s doesn't have delta.tar.gz", appid);
+ status = -2;
+ goto execute_destroy;
+ }
}
/* 2. Check client have appropriate delta */
/* 2. Check storage have delta.tar */
storage_delta_path = g_strjoin("/", mount_path, folder_name, FOTA_DELTA_FILENAME, NULL);
if (!g_file_test(storage_delta_path, G_FILE_TEST_EXISTS)) {
- _FLOGI("Storage doesn't have %s", storage_delta_path);
- goto verify_destroy;
+ gchar *tmp_storage_delta_path = storage_delta_path;
+ storage_delta_path = g_strconcat(tmp_storage_delta_path, ".gz", NULL);
+ free(tmp_storage_delta_path);
+
+ if (!g_file_test(storage_delta_path, G_FILE_TEST_EXISTS)) {
+ _FLOGI("Storage doesn't have %s", storage_delta_path);
+ goto verify_destroy;
+ }
}
/* 3. Check storage have appropriate delta */