mirror of https://github.com/astral-sh/uv
Never create bin links on `uv python upgrade` if they don't already exist (#15192)
Fixes #15178
This commit is contained in:
parent
193ab23e17
commit
76b4ae40c6
|
|
@ -764,6 +764,9 @@ fn create_bin_links(
|
||||||
|
|
||||||
for target in targets {
|
for target in targets {
|
||||||
let target = bin.join(target);
|
let target = bin.join(target);
|
||||||
|
if upgrade && !target.try_exists().unwrap_or_default() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let executable = if upgradeable {
|
let executable = if upgradeable {
|
||||||
if let Some(minor_version_link) =
|
if let Some(minor_version_link) =
|
||||||
PythonMinorVersionLink::from_installation(installation, preview)
|
PythonMinorVersionLink::from_installation(installation, preview)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue