From 1cc074f0f27fa96cb4a60b6094cad407b69d06bb Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 3 Jun 2005 10:40:15 +0000 Subject: Micro-optimisation --- urpm.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/urpm.pm b/urpm.pm index 467a8919..ee09409a 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2539,8 +2539,7 @@ sub is_delta_installable { my ($p) = @_; $p->name eq $n and $v_installed = $p->version . '-' . $p->release; }); - return 0 if $v_match ne $v_installed; - 1; + $v_match eq $v_installed; } #- download package that may need to be downloaded. -- cgit v1.2.1