Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpm 3 #831

Merged
merged 3 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 49 additions & 48 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust/aura-arch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
description = "Common packaging interactions on an Arch Linux system."

[dependencies]
alpm = "2.2"
alpm-utils = "2.0"
alpm = "3.0"
alpm-utils = "3.0"
6 changes: 4 additions & 2 deletions rust/aura-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ license = "GPL-3.0-only"
keywords = ["archlinux", "alpm", "aur", "pacman"]

[dependencies]
alpm = "2.2"
alpm-utils = "2.0"
r2d2-alpm = { version = "0.2", path = "../r2d2-alpm" }

alpm = "3.0"
alpm-utils = "3.0"
disown = "1.0"
from_variants = "1.0"
itertools = "0.12"
Expand Down
6 changes: 3 additions & 3 deletions rust/aura-core/src/aur/dependencies.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! AUR package dependency solving.

use crate::Apply;
use alpm::Alpm;
use disown::Disown;
use log::{debug, info};
use nonempty_collections::NEVec;
use petgraph::graph::NodeIndex;
use petgraph::Graph;
use r2d2::{ManageConnection, Pool};
use r2d2_alpm::Alpm;
use rayon::iter::{IntoParallelIterator, IntoParallelRefIterator, ParallelIterator};
use srcinfo::Srcinfo;
use std::borrow::Borrow;
Expand Down Expand Up @@ -244,7 +244,7 @@ where
);
let alpm = pool.get()?;
debug!("Got a handle.");
let db = alpm.localdb();
let db = alpm.alpm.localdb();
db.pkg(pr).is_ok() || db.pkgs().find_satisfier(pr).is_some()
};

Expand All @@ -258,7 +258,7 @@ where
} else {
let alpm = pool.get()?;

match alpm.syncdbs().find_satisfier(pr) {
match alpm.alpm.syncdbs().find_satisfier(pr) {
Some(official) => {
debug!("{} is an official package.", pr);

Expand Down
Loading
Loading