From 5315b76ee8e9041ce78024e1a00122f8b03d71ea Mon Sep 17 00:00:00 2001 From: Fries Date: Tue, 4 Oct 2022 18:44:03 -0700 Subject: [PATCH] operations/upgrade: check if version is greater we should check if the version is greater instead of checking if its greater or equal --- src/operations/upgrade.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/upgrade.rs b/src/operations/upgrade.rs index bdee8c2..0087217 100644 --- a/src/operations/upgrade.rs +++ b/src/operations/upgrade.rs @@ -65,7 +65,7 @@ async fn upgrade_aur(options: Options) { .silent_unwrap(AppExitCode::RpcError); if let Some(remote_package) = remote_package { - if vercmp(remote_package.metadata.version.clone(), pkg.version.clone()).is_ge() { + if vercmp(remote_package.metadata.version.clone(), pkg.version.clone()).is_gt() { tracing::debug!( "local version: {}, remote version: {}", pkg.version,