summaryrefslogtreecommitdiffstats
path: root/perl-install/swap.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-30 10:09:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-30 10:09:27 +0000
commita419039b11d02b7ef2b7f894b199b245a7876303 (patch)
tree80c4d24a153aff1c05609b529d086457fe557c49 /perl-install/swap.pm
parentc591bd073fb71703d6eb804429ed5b7e53bc538f (diff)
downloaddrakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar.gz
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar.bz2
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.tar.xz
drakx-a419039b11d02b7ef2b7f894b199b245a7876303.zip
perl_checker compliance
Diffstat (limited to 'perl-install/swap.pm')
-rw-r--r--perl-install/swap.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/swap.pm b/perl-install/swap.pm
index 659c9da07..512c72c27 100644
--- a/perl-install/swap.pm
+++ b/perl-install/swap.pm
@@ -28,7 +28,7 @@ my $signature_format_v1 = "x1024 I I I I125"; #- bootbits, version, last_page, n
1;
sub kernel_greater_or_equal($$$) {
- c::kernel_version() =~ /(\d*)\.(\d*)\.(\d*)/;
+ c::kernel_version() =~ /(\d*)\.(\d*)\.(\d*)/ or return;
($1 <=> $_[0] || $2 <=> $_[1] || $3 <=> $_[2]) >= 0;
}