mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-01 14:31:12 +00:00
Add filter for install_registry_source_dist_cached on Gentoo (#3071)
Closes https://github.com/astral-sh/uv/issues/3051.
This commit is contained in:
parent
8e37625005
commit
dd09de2d70
1 changed files with 7 additions and 2 deletions
|
@ -1482,13 +1482,18 @@ fn install_registry_source_dist_cached() -> Result<()> {
|
||||||
parent.create_dir_all()?;
|
parent.create_dir_all()?;
|
||||||
let venv = create_venv(&parent, &context.cache_dir, "3.12");
|
let venv = create_venv(&parent, &context.cache_dir, "3.12");
|
||||||
|
|
||||||
let filters = if cfg!(windows) {
|
let filters: Vec<(&str, &str)> = if cfg!(windows) {
|
||||||
|
// On Windows, the number of files removed is different.
|
||||||
[("Removed 615 files", "Removed 616 files")]
|
[("Removed 615 files", "Removed 616 files")]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.chain(context.filters())
|
.chain(context.filters())
|
||||||
.collect()
|
.collect()
|
||||||
} else {
|
} else {
|
||||||
context.filters()
|
// For some Linux distributions, like Gentoo, the number of files removed is different.
|
||||||
|
[("Removed 614 files", "Removed 616 files")]
|
||||||
|
.into_iter()
|
||||||
|
.chain(context.filters())
|
||||||
|
.collect()
|
||||||
};
|
};
|
||||||
uv_snapshot!(filters, Command::new(get_bin())
|
uv_snapshot!(filters, Command::new(get_bin())
|
||||||
.arg("clean")
|
.arg("clean")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue