Skip to content

Commit

Permalink
Merge pull request #1730 from aka7/spma_dnf_backend_update
Browse files Browse the repository at this point in the history
ncm-spma: update to dnf backend to exclude additional kernel packages.
  • Loading branch information
jrha authored Nov 13, 2024
2 parents fde6175 + 55a8e7f commit 0ea6545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncm-spma/src/main/perl/spma/dnf.pm
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ sub Configure
my $rpm_version = (split(':', $rpm))[-1];

# Do not remove core packages for currently running kernel.
if ( ($rpm =~ /^(kernel|kernel-core|kernel-modules)-(\d+):/) &&
if ( ($rpm =~ /^(kernel(-[\w-]+)?)-(\d+):/) &&
(index($rpm_version, $kvers) == 0 || match_glob($kvers, $rpm_version))) {
$self->info("Skip removal of core package(s) for running kernel: $rpm");
$will_remove->delete($rpm);
Expand Down

0 comments on commit 0ea6545

Please sign in to comment.