summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index e87116a3e..04faa525d 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -200,7 +200,7 @@ sub kernelVersion {
if (my $link = (arch() !~ /ppc/) ?
readlink("$o->{prefix}/boot/vmlinuz") :
readlink("$o->{prefix}/boot/vmlinux")) {
- $link =~ first(/-(.*mdk)/);
+ first($link =~ /-(.*mdk)/);
} else {
require pkgs;
my $p = pkgs::packageByName($o->{packages}, "kernel");