]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 344915: Non-installed modules are reported incorrectly
authormkanat%bugzilla.org <>
Wed, 19 Jul 2006 04:08:15 +0000 (04:08 +0000)
committermkanat%bugzilla.org <>
Wed, 19 Jul 2006 04:08:15 +0000 (04:08 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin, r=LpSolit, a=justdave

Bugzilla/Install/Requirements.pm

index e8f27c503e52af6cb9541cc2b67f548fafa79bbb..11eaa44478d33bb22c4d720a88581d03ab5db3db 100644 (file)
@@ -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);