Verified Commit 60397221 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Update alpm to the latest version.

parent cd8484e7
Pipeline #4516 passed with stages
in 3 minutes and 5 seconds
......@@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "alpm"
version = "0.10.3"
version = "1.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f250c3fe5217651a708afb44babf79438691ba0599dacbabd061356b403e30d7"
checksum = "e834799ef219d0fce39b43998409e9c06e62c2446015a422d32b4fb4abfc8f54"
dependencies = [
"alpm-sys",
"bitflags",
......@@ -12,9 +12,9 @@ dependencies = [
[[package]]
name = "alpm-sys"
version = "1.1.1"
version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7ec21bce781ec06de31204090442cfdc33d6b4be496239e82d796cfd8b62b23"
checksum = "d6e4a05f349fdabd8ea6bc000fc559c674d64945571a71ff2937b9a66307c8f5"
[[package]]
name = "ansi_term"
......
......@@ -14,7 +14,7 @@ categories = ["command-line-utilities"]
publish = false
[dependencies]
alpm = "0.10"
alpm = "1"
petgraph = "0.5"
structopt = "0.3"
......
......@@ -33,10 +33,7 @@ fn get_reverse_deps_map(
let dbs = pacman.syncdbs();
for db in dbs {
if db.pkgs().is_err() {
eprintln!("Unable to get packages from sync db {}", db.name());
}
for pkg in db.pkgs()? {
for pkg in db.pkgs() {
for dep in pkg.depends() {
reverse_deps
.entry(dep.name().to_string())
......@@ -96,7 +93,7 @@ pub fn run(
let pacman = pacman?;
for repo in repos {
let _repo = pacman.register_syncdb(&repo, SigLevel::DATABASE_OPTIONAL);
let _repo = pacman.register_syncdb(repo, SigLevel::DATABASE_OPTIONAL);
}
let reverse_deps_map = get_reverse_deps_map(&pacman)?;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment