mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 03:27:12 +01:00
Fix remove_plan code
This commit is contained in:
parent
a7be90f823
commit
836de4b074
@ -42,7 +42,7 @@ namespace vcpkg::Dependencies
|
||||
{
|
||||
remove_plan_type plan_type;
|
||||
request_type request_type;
|
||||
std::unique_ptr<StatusParagraph> status_pgh;
|
||||
StatusParagraph* status_pgh;
|
||||
};
|
||||
|
||||
struct package_spec_with_remove_plan
|
||||
|
@ -90,7 +90,7 @@ namespace vcpkg::Dependencies
|
||||
continue;
|
||||
}
|
||||
|
||||
auto it = status_db.find(spec);
|
||||
const StatusParagraphs::const_iterator it = status_db.find(spec);
|
||||
if (it == status_db.end() || (*it)->state == install_state_t::not_installed)
|
||||
{
|
||||
was_examined.emplace(spec, remove_plan_action{remove_plan_type::NOT_INSTALLED, request_type::USER_REQUESTED, nullptr});
|
||||
@ -115,7 +115,7 @@ namespace vcpkg::Dependencies
|
||||
}
|
||||
|
||||
const request_type request_type = specs_as_set.find(spec) != specs_as_set.end() ? request_type::USER_REQUESTED : request_type::AUTO_SELECTED;
|
||||
was_examined.emplace(spec, remove_plan_action{remove_plan_type::REMOVE, request_type,std::make_unique<StatusParagraph>(std::move(**it))});
|
||||
was_examined.emplace(spec, remove_plan_action{remove_plan_type::REMOVE, request_type,it->get()});
|
||||
}
|
||||
|
||||
std::vector<package_spec_with_remove_plan> ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user