Skip to content

Commit

Permalink
Filter out localrepo updates from repo updates
Browse files Browse the repository at this point in the history
Fixes #652
  • Loading branch information
Morganamilo committed Feb 16, 2022
1 parent 62960a0 commit 017e05b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ pub fn repo_upgrades(config: &Config) -> Result<Vec<alpm::Package>> {
.sync_sysupgrade(config.args.count("u", "sysupgrade") > 1)?;

let mut pkgs = config.alpm.trans_add().iter().collect::<Vec<_>>();
let dbs = config.alpm.syncdbs();
let (dbs, _) = repo::repo_aur_dbs(config);

pkgs.retain(|p| dbs.iter().any(|db| db.name() == p.db().unwrap().name()));

pkgs.sort_by(|a, b| {
dbs.iter()
Expand Down

0 comments on commit 017e05b

Please sign in to comment.