Skip to content

Commit

Permalink
add another possibility to the missing package warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Dec 18, 2024
1 parent 2b10d63 commit 2e74373
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/backends/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ impl Backend for Arch {
it may be due to one of the following issues:
- the package name has a typo as written in your group files
- the package is in a repository that you don't have enabled in
/etc/pacman.conf (such as multilib)
- the package is a virtual package (https://wiki.archlinux.org/title/Pacman#Virtual_packages)
and so is ambiguous. You can run `pacman -Ss {package:?}` to list non-virtual packages which
which provide the virtual package
Expand Down Expand Up @@ -254,4 +256,14 @@ impl Backend for Arch {
false,
)
}

fn missing(
managed: Self::InstallOptions,
installed: Option<Self::QueryInfo>,
) -> Option<Self::InstallOptions> {
match installed {
Some(_) => None,
None => Some(managed),
}
}
}

0 comments on commit 2e74373

Please sign in to comment.