Skip to content

Commit

Permalink
feat: optimize ll-cli prune command
Browse files Browse the repository at this point in the history
无论是否存在未使用的runtime, 都清理一遍ostree仓库
  • Loading branch information
myml authored and dengbo11 committed Dec 23, 2024
1 parent 89bb6f0 commit cd11eaf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2115,15 +2115,15 @@ PackageManager::Prune(std::vector<api::types::v1::PackageInfoV2> &removed) noexc
}

if (!target.empty()) {
auto pruneRet = this->repo.prune();
if (!pruneRet) {
return LINGLONG_ERR(pruneRet);
}
auto mergeRet = this->repo.mergeModules();
if (!mergeRet.has_value()) {
qCritical() << "merge modules failed: " << mergeRet.error().message();
}
}
auto pruneRet = this->repo.prune();
if (!pruneRet) {
return LINGLONG_ERR(pruneRet);
}
return LINGLONG_OK;
}

Expand Down

0 comments on commit cd11eaf

Please sign in to comment.