Skip to content

Commit 205d97f

Browse files
committed
Fix build
1 parent a5a85f4 commit 205d97f

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

Cargo.lock

Lines changed: 2 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

oma-pm/src/matches.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{borrow::Cow, path::Path};
1+
use std::{borrow::Cow, cmp::Ordering, path::Path};
22

33
use bon::{Builder, builder};
44
use cxx::UniquePtr;
@@ -309,7 +309,9 @@ impl<'a> PackagesMatcher<'a> {
309309
}
310310
}
311311

312-
sort.sort_by(|x, y| oma_apt::util::cmp_versions(x.version(), y.version()));
312+
sort.sort_by(|x, y| {
313+
oma_apt::util::cmp_versions(x.version(), y.version()).unwrap_or(Ordering::Equal)
314+
});
313315

314316
if self.filter_candidate {
315317
let version = sort.last();

oma-refresh/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ oma-topics = { version = "^0.25.0", path = "../oma-topics", optional = true, def
1919
tracing ="0.1"
2020
oma-repo-verify = { version = "^0.9.0", path = "../oma-repo-verify", default-features = false }
2121
ahash = "0.8.11"
22-
oma-apt = { version = "0.9.0", optional = true }
22+
oma-apt = { version = "0.10.0", optional = true }
2323
aho-corasick = "1.1.3"
2424
# https://github.com/bytecodealliance/rustix/pull/1077
2525
# rustix = { version = "0.38", features = ["fs"] }

0 commit comments

Comments
 (0)