Bug 344915: Non-installed modules are reported incorrectly

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=colin, r=LpSolit, a=justdave
This commit is contained in:
mkanat%bugzilla.org 2006-07-18 21:08:15 +00:00
parent 05e9335fb1
commit 59339f08d8

View 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);