Accepting request 584456 from home:LPechacek:branches:Base:System

- purge-kernels: Handle SLE 15 kernel live patches (bsc#108437)

OBS-URL: https://build.opensuse.org/request/show/584456
OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=345
This commit is contained in:
Daniel Molkentin 2018-03-08 15:24:30 +00:00 committed by Git OBS Bridge
parent d56a337f66
commit 22efa4c275
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 7 15:47:48 UTC 2018 - lpechacek@suse.com
- purge-kernels: Handle SLE 15 kernel live patches (bsc#108437)
-------------------------------------------------------------------
Fri Feb 23 13:04:52 UTC 2018 - daniel.molkentin@suse.com

View File

@ -300,7 +300,7 @@ sub remove_packages {
my %old_packages = map { $_ => 1 } @packages;
my %new_packages;
for (@out) {
if (/ is needed by \(installed\) (kgraft-patch-.*|.*-kmp-.*)/ &&
if (/ is needed by \(installed\) (kgraft-patch-.*|kernel-livepatch-.*|.*-kmp-.*)/ &&
!$old_packages{$1}) {
push(@packages, $1) unless $new_packages{$1};
$new_packages{$1} = 1;