Fix apply_configuration function
Accidental removal of filter call leading to a regression, which output the full package list for each container configuration. The original intention was to remove a conditional statement from the filter.
This commit is contained in:
parent
adf9686ec3
commit
062d313d00
1 changed files with 10 additions and 1 deletions
|
@ -483,7 +483,16 @@ impl<'a> TransactionHandle<'a> {
|
|||
fn apply_configuration(&mut self, instance: &ContainerHandle, create: bool) -> Result<()> {
|
||||
let depends = instance.metadata().dependencies();
|
||||
let explicit_packages: Vec<&str> = instance.metadata().explicit_packages();
|
||||
let pkgs = self.alpm.as_mut().expect("ALPM").localdb().pkgs().iter().map(|p| p.name()).collect();
|
||||
let pkgs = self
|
||||
.alpm
|
||||
.as_mut()
|
||||
.expect("ALPM handle")
|
||||
.localdb()
|
||||
.pkgs()
|
||||
.iter()
|
||||
.filter(|p| p.reason() == PackageReason::Explicit && !self.meta.foreign_pkgs.contains(p.name()))
|
||||
.map(|p| p.name())
|
||||
.collect();
|
||||
|
||||
if pkgs != explicit_packages || create {
|
||||
let mut instance = instance.clone();
|
||||
|
|
Loading…
Add table
Reference in a new issue