diff options
author | Prarit Bhargava <prarit@redhat.com> | 2020-01-08 10:23:14 -0500 |
---|---|---|
committer | Jeremy Cline <jcline@redhat.com> | 2020-01-14 13:09:53 -0500 |
commit | 8c274f198937594771ce3a3453176ca8cb5efb58 (patch) | |
tree | d9b119f3dfc8bf15c0b0f8b3937363c091bff256 /kernel.spec | |
parent | a443bcbf915cc5797ae3d950ee6c26b71e57e92e (diff) | |
download | kernel-8c274f198937594771ce3a3453176ca8cb5efb58.tar.gz kernel-8c274f198937594771ce3a3453176ca8cb5efb58.tar.xz kernel-8c274f198937594771ce3a3453176ca8cb5efb58.zip |
kernel.spec: Remove kernel-keys directory on rpm erase
An empty /usr/share/doc/kernel-keys/VR directory is left after executing
an 'rpm -e kernel-core-VR'. Simplify the code by removing the if clauses
and only list the kernel-keys directory.
Remove the directory when the rpm is erased.
Signed-off-by: Bruno E. O. Meneguele <bmeneg@redhat.com>
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Diffstat (limited to 'kernel.spec')
-rw-r--r-- | kernel.spec | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel.spec b/kernel.spec index 5fe0a1f7f..533bb1c3f 100644 --- a/kernel.spec +++ b/kernel.spec @@ -2840,12 +2840,7 @@ fi /lib/modules/%{KVERREL}%{?3:+%{3}}/source\ /lib/modules/%{KVERREL}%{?3:+%{3}}/updates\ /lib/modules/%{KVERREL}%{?3:+%{3}}/bls.conf\ -%{_datadir}/doc/kernel-keys/%{KVERREL}%{?3:+%{3}}/kernel-signing-ca.cer\ -%ifarch s390x ppc64le\ -%if 0%{!?4:1}\ -%{_datadir}/doc/kernel-keys/%{KVERREL}%{?3:+%{3}}/%{signing_key_filename} \ -%endif\ -%endif\ +%{_datadir}/doc/kernel-keys/%{KVERREL}%{?3:+%{3}}\ %if %{1}\ /lib/modules/%{KVERREL}%{?3:+%{3}}/vdso\ %endif\ |