Fix 29 audit findings across all severity tiers
This commit is contained in:
@@ -330,9 +330,12 @@ fn build_name_group(name: &str, records: &[&AppImageRecord]) -> DuplicateGroup {
|
||||
|
||||
/// Compare two version strings for ordering.
|
||||
fn compare_versions(a: &str, b: &str) -> std::cmp::Ordering {
|
||||
use super::updater::version_is_newer;
|
||||
use super::updater::{clean_version, version_is_newer};
|
||||
|
||||
if a == b {
|
||||
let ca = clean_version(a);
|
||||
let cb = clean_version(b);
|
||||
|
||||
if ca == cb {
|
||||
std::cmp::Ordering::Equal
|
||||
} else if version_is_newer(a, b) {
|
||||
std::cmp::Ordering::Greater
|
||||
|
||||
Reference in New Issue
Block a user