mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-01 06:21:13 +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()?;
|
||||
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…
Add table
Add a link
Reference in a new issue