Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-rebuild-order
Commits
60397221
Verified
Commit
60397221
authored
Jan 08, 2021
by
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
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
60397221
...
...
@@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "alpm"
version = "
0
.1
0.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"
...
...
Cargo.toml
View file @
60397221
...
...
@@ -14,7 +14,7 @@ categories = ["command-line-utilities"]
publish
=
false
[dependencies]
alpm
=
"
0.10
"
alpm
=
"
1
"
petgraph
=
"0.5"
structopt
=
"0.3"
...
...
src/lib.rs
View file @
60397221
...
...
@@ -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
)
?
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment