fix error message for kmodtool

This commit is contained in:
wangshuo 2020-08-21 15:23:33 +08:00
parent 321e0f58fa
commit 721dd2d176
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Name: %{vendor}-rpm-config
Version: 30
Release: 10
Release: 12
License: GPL+
Summary: specific rpm configuration files
URL: https://gitee.com/src-openeuler/openEuler-rpm-config
@ -116,6 +116,9 @@ mkdir -p %{buildroot}%{_fileattrsdir}
%{_rpmconfigdir}/macros.d/macros.kmp
%changelog
* Fri Aug 21 2020 Wang Shuo <wangshuo_1994@foxmail.com> - 30-12
- fix error message for kmodtool
* Fri June 19 2020 zhangliuyan <zhangliuyan@huawei.com> - 30-11
- add kmodtool.py macros.kmp

View File

@ -39,7 +39,7 @@ def get_rpmtemplate(kmod_name,verrel):
print("This package provides the " + kmod_name + " kernel modules built for the Linux")
print("kernel "+ verrel + " for the %{_target_cpu} family of processors.")
print("%post -n kmod-" + kmod_name)
print("if [ -e /boot/System.map-" + verrel + "]; then")
print("if [ -e /boot/System.map-" + verrel + " ]; then")
print(" /sbin/depmod -aeF /boot/System.map-" + verrel +" " + verrel +"> /dev/null || :")
print("fi")
if (kmp !=""):