mirror of https://github.com/astral-sh/uv
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
|
|
@ -1482,13 +1482,18 @@ fn install_registry_source_dist_cached() -> Result<()> {
|
|||
parent.create_dir_all()?;
|
||||
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")]
|
||||
.into_iter()
|
||||
.chain(context.filters())
|
||||
.collect()
|
||||
} 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())
|
||||
.arg("clean")
|
||||
|
|
|
|||
Loading…
Reference in New Issue