Skip to content

Commit

Permalink
[Kernel] Improve detection of RedHat based distris (discussed in #73).
Browse files Browse the repository at this point in the history
  • Loading branch information
liske committed Nov 2, 2017
1 parent f532415 commit 21b2406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/Kernel/Linux.pm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ sub nr_kernel_check_real($$) {
return (NRK_UNKNOWN, %vars);
}

if(-e "/etc/redhat-version" && !-x "/usr/bin/dpkg") {
if(-e "/etc/redhat-release") {
print STDERR "$LOGPREF using RPM version sorting\n" if($debug);
($vars{EVERSION}) = reverse sort { nr_kernel_vcmp_rpm($a, $b); } keys %kernels;
}
Expand Down

0 comments on commit 21b2406

Please sign in to comment.