Fix missed stabilization of removal of registry entry during Python uninstall (#14859)

Funny enough, I caught this via
https://github.com/astral-sh/uv/pull/14823
This commit is contained in:
Zanie Blue 2025-07-23 17:44:48 -05:00 committed by GitHub
parent 30b15361e5
commit 1ddfcee9e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,13 +112,11 @@ async fn do_uninstall(
}
if !found {
// Clear any remnants in the registry
if preview.is_enabled() {
#[cfg(windows)]
{
uv_python::windows_registry::remove_orphan_registry_entries(
&installed_installations,
);
}
#[cfg(windows)]
{
uv_python::windows_registry::remove_orphan_registry_entries(
&installed_installations,
);
}
if matches!(requests.as_slice(), [PythonRequest::Default]) {