mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-27 01:00:38 +00:00
Hnp差异代码同步
Signed-off-by: 陈其文 <chenqiwen6@huawei.com>
This commit is contained in:
parent
4c944b43b6
commit
7456492820
@ -472,7 +472,7 @@ int HnpPackageInfoGet(const char *packageName, HnpPackageInfo **packageInfoOut,
|
||||
cJSON *version = cJSON_GetObjectItem(hnpItem, "current_version");
|
||||
cJSON *installVersion = cJSON_GetObjectItem(hnpItem, "install_version");
|
||||
if (name == NULL || version == NULL || installVersion == NULL || !cJSON_IsString(name) ||
|
||||
!cJSON_IsString(name) || !cJSON_IsString(version) || !cJSON_IsString(installVersion)) {
|
||||
!cJSON_IsString(version) || !cJSON_IsString(installVersion)) {
|
||||
continue;
|
||||
}
|
||||
hnpExist = HnpOtherPackageInstallCheck(name->valuestring, version->valuestring, hapIndex, json);
|
||||
|
Loading…
Reference in New Issue
Block a user