pub struct Actions<'a> {
pub missing: Vec<Missing>,
pub unneeded: Vec<Unneeded>,
pub build: Vec<Base>,
pub install: Vec<RepoPackage<'a>>,
/* private fields */
}
Expand description
The response from resolving dependencies.
Note that just because resolving returned Ok() does not mean it is safe to bindly start installing these packages.
Fields§
§missing: Vec<Missing>
Some of the targets or dependencies could not be satisfied. This should be treated as a hard error.
unneeded: Vec<Unneeded>
Targets that are up to date.
build: Vec<Base>
Aur packages to build.
install: Vec<RepoPackage<'a>>
Repo packages to install.
Implementations§
Source§impl<'a> Actions<'a>
impl<'a> Actions<'a>
Sourcepub fn iter_aur_pkgs(&self) -> impl Iterator<Item = &AurPackage>
pub fn iter_aur_pkgs(&self) -> impl Iterator<Item = &AurPackage>
An iterator over each AUR package in self.build.
Sourcepub fn iter_pkgbuilds(&self) -> impl Iterator<Item = (&Srcinfo, &Pkgbuild)>
pub fn iter_pkgbuilds(&self) -> impl Iterator<Item = (&Srcinfo, &Pkgbuild)>
An iterator over each pkgbuild in self.build.
Source§impl<'a> Actions<'a>
impl<'a> Actions<'a>
Sourcepub fn calculate_conflicts(&self, makedeps: bool) -> Vec<Conflict>
pub fn calculate_conflicts(&self, makedeps: bool) -> Vec<Conflict>
Calculate conflicts. Do note that even with conflicts it can still be possible to continue and install the packages. Although that is not checked here.
For example installing pacman-git will conflict with pacman. But the install will still succeed as long as the user hits yes to pacman’s prompt to remove pacman.
However other cases are more complex and can not be automatically resolved. So it is up to the user to decide how to handle these.
makedeps: if true, include make dependencies in the conflict calculation.
Sourcepub fn calculate_inner_conflicts(&self, makedeps: bool) -> Vec<Conflict>
pub fn calculate_inner_conflicts(&self, makedeps: bool) -> Vec<Conflict>
Calculate inner conflicts. Do note that even with conflicts it can still be possible to continue and install the packages. Although that is not checked here.
For example installing pacman-git will conflict with pacman. But the install will still succeed as long as the user hits yes to pacman’s prompt to remove pacman.
However other cases are more complex and can not be automatically resolved. So it is up to the user to decide how to handle these.
makedeps: if true, include make dependencies in the conflict calculation.
Sourcepub fn duplicate_targets(&self) -> Vec<String>
pub fn duplicate_targets(&self) -> Vec<String>
Find duplicate targets. It is possible to have duplicate targets if packages with the same name exist across repos.