summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 10:40:15 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 10:40:15 +0000
commit1cc074f0f27fa96cb4a60b6094cad407b69d06bb (patch)
tree520beaf17e44514097fbb9573d006b7a5a91959f
parent723f59f8182198361ec3339e21e1454d9fd9f855 (diff)
downloadurpmi-1cc074f0f27fa96cb4a60b6094cad407b69d06bb.tar
urpmi-1cc074f0f27fa96cb4a60b6094cad407b69d06bb.tar.gz
urpmi-1cc074f0f27fa96cb4a60b6094cad407b69d06bb.tar.bz2
urpmi-1cc074f0f27fa96cb4a60b6094cad407b69d06bb.tar.xz
urpmi-1cc074f0f27fa96cb4a60b6094cad407b69d06bb.zip
Micro-optimisation
-rw-r--r--urpm.pm3
1 files changed, 1 insertions, 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.