Skip to content

Commit

Permalink
Fix -Si repo/package for pkgbuild repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Nov 15, 2024
1 parent a1a0021 commit b23382f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub async fn info(conf: &mut Config, verbose: bool) -> Result<i32, Error> {
let longest = longest(conf) + 3;

let (pkgbuild, aur) = aur.into_iter().partition::<Vec<_>, _>(|t| {
if !conf.mode.aur() {
if !conf.mode.repo() {
return true;
}
if !conf.mode.pkgbuild() {
Expand Down
6 changes: 3 additions & 3 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ pub fn split_repo_aur_info<'a, T: AsTarg>(
} else if !config.mode.aur() && !config.mode.pkgbuild() {
local.push(targ);
} else if let Some(repo) = targ.repo {
if repo == config.aur_namespace() || repo == "." {
aur.push(targ);
} else {
if config.alpm.syncdbs().iter().any(|db| db.name() == repo) {
local.push(targ);
} else {
aur.push(targ);
}
} else if dbs.pkg(targ.pkg).is_ok() {
local.push(targ);
Expand Down

0 comments on commit b23382f

Please sign in to comment.