FIX: [STUDIO-3891] not remove unselected config bundles
Change-Id: Ibab65c289b3d0900650b93bf6e9789c271dd3db2
This commit is contained in:
parent
e78812dac4
commit
11fb86a054
|
@ -737,19 +737,20 @@ bool GuideFrame::apply_config(AppConfig *app_config, PresetBundle *preset_bundle
|
||||||
BOOST_LOG_TRIVIAL(info) << "No bundles need to be installed from resource directory";
|
BOOST_LOG_TRIVIAL(info) << "No bundles need to be installed from resource directory";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (remove_bundles.size() > 0) {
|
// Not remove, because these bundles may be updated
|
||||||
//remove unused bundles
|
//if (remove_bundles.size() > 0) {
|
||||||
for (const auto &it : remove_bundles) {
|
// //remove unused bundles
|
||||||
auto vendor_file = vendor_dir/(it + ".json");
|
// for (const auto &it : remove_bundles) {
|
||||||
auto sub_dir = vendor_dir/(it);
|
// auto vendor_file = vendor_dir/(it + ".json");
|
||||||
if (fs::exists(vendor_file))
|
// auto sub_dir = vendor_dir/(it);
|
||||||
fs::remove(vendor_file);
|
// if (fs::exists(vendor_file))
|
||||||
if (fs::exists(sub_dir))
|
// fs::remove(vendor_file);
|
||||||
fs::remove_all(sub_dir);
|
// if (fs::exists(sub_dir))
|
||||||
}
|
// fs::remove_all(sub_dir);
|
||||||
} else {
|
// }
|
||||||
BOOST_LOG_TRIVIAL(info) << "No bundles need to be removed";
|
//} else {
|
||||||
}
|
// BOOST_LOG_TRIVIAL(info) << "No bundles need to be removed";
|
||||||
|
//}
|
||||||
|
|
||||||
std::string preferred_model;
|
std::string preferred_model;
|
||||||
std::string preferred_variant;
|
std::string preferred_variant;
|
||||||
|
|
Loading…
Reference in New Issue