mirror of https://github.com/astral-sh/uv
Fix always-plural message in uv python install (#4866)
This commit is contained in:
parent
f4c4b69cc7
commit
a302d704c5
|
|
@ -117,9 +117,10 @@ pub(crate) async fn install(
|
||||||
.unique_by(|download| download.key())
|
.unique_by(|download| download.key())
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
|
let s = if downloads.len() == 1 { "" } else { "s" };
|
||||||
writeln!(
|
writeln!(
|
||||||
printer.stderr(),
|
printer.stderr(),
|
||||||
"Found {} versions requiring installation",
|
"Found {} version{s} requiring installation",
|
||||||
downloads.len()
|
downloads.len()
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue