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>
This commit is contained in:
parent
a443bcbf91
commit
8c274f1989
@ -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\
|
||||
|
Loading…
Reference in New Issue
Block a user