summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-07-19 06:08:15 +0200
committermkanat%bugzilla.org <>2006-07-19 06:08:15 +0200
commitaa205508ed3bc52b02cde76286daaec40aebfa5c (patch)
tree319e1dff561dd2b3df3e913a6b0a1f22cc9a95ec /Bugzilla/Install
parent47a9a892e8fe70863846c00a5858fceffc79b3d0 (diff)
downloadbugzilla-aa205508ed3bc52b02cde76286daaec40aebfa5c.tar.gz
bugzilla-aa205508ed3bc52b02cde76286daaec40aebfa5c.tar.xz
Bug 344915: Non-installed modules are reported incorrectly
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin, r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/Requirements.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm
index e8f27c503..11eaa4447 100644
--- a/Bugzilla/Install/Requirements.pm
+++ b/Bugzilla/Install/Requirements.pm
@@ -152,8 +152,8 @@ sub vers_cmp {
my ($a, $b) = @_;
# Remove leading zeroes - Bug 344661
- $a =~ s/^0*(.*)/$1/;
- $b =~ s/^0*(.*)/$1/;
+ $a =~ s/^0*(\d.+)/$1/;
+ $b =~ s/^0*(\d.+)/$1/;
my @A = ($a =~ /([-.]|\d+|[^-.\d]+)/g);
my @B = ($b =~ /([-.]|\d+|[^-.\d]+)/g);