appro:优化update判断。
This commit is contained in:
parent
4dd8bdc8f1
commit
edb3e15426
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -21,7 +21,7 @@
|
|||||||
],
|
],
|
||||||
"visualizerFile": "${workspaceRoot}/.vscode/qt5.natvis",
|
"visualizerFile": "${workspaceRoot}/.vscode/qt5.natvis",
|
||||||
"args": [
|
"args": [
|
||||||
"-n", "2"
|
"-n", "1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"cmake.environment": {
|
"cmake.environment": {
|
||||||
|
@ -376,8 +376,17 @@ bool CClient::request_update_list(const std::string& param)
|
|||||||
std::string handled_content;
|
std::string handled_content;
|
||||||
for (const auto& item : vec) {
|
for (const auto& item : vec) {
|
||||||
std::string hitem = COfStr::trim(item);
|
std::string hitem = COfStr::trim(item);
|
||||||
|
if (hitem.empty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
logger_->info("---> check {}", hitem);
|
||||||
auto v = COfStr::split(hitem, "|");
|
auto v = COfStr::split(hitem, "|");
|
||||||
if (v.size() >= 2) {
|
if (v.size() >= 2) {
|
||||||
|
if (!fs::exists(v[0])) {
|
||||||
|
logger_->error("file {} not exist.", v[0]);
|
||||||
|
valid = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
handled_content.append(hitem + "\n");
|
handled_content.append(hitem + "\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user