diff --git a/src/upgrade.rs b/src/upgrade.rs index 3d2da635..661e26b7 100644 --- a/src/upgrade.rs +++ b/src/upgrade.rs @@ -29,7 +29,9 @@ pub fn repo_upgrades(config: &Config) -> Result> { .sync_sysupgrade(config.args.count("u", "sysupgrade") > 1)?; let mut pkgs = config.alpm.trans_add().iter().collect::>(); - 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()