forked from custom/rpm-config
fix error message for kmodtool
This commit is contained in:
parent
321e0f58fa
commit
721dd2d176
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: %{vendor}-rpm-config
|
Name: %{vendor}-rpm-config
|
||||||
Version: 30
|
Version: 30
|
||||||
Release: 10
|
Release: 12
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Summary: specific rpm configuration files
|
Summary: specific rpm configuration files
|
||||||
URL: https://gitee.com/src-openeuler/openEuler-rpm-config
|
URL: https://gitee.com/src-openeuler/openEuler-rpm-config
|
||||||
@ -116,6 +116,9 @@ mkdir -p %{buildroot}%{_fileattrsdir}
|
|||||||
%{_rpmconfigdir}/macros.d/macros.kmp
|
%{_rpmconfigdir}/macros.d/macros.kmp
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri June 19 2020 zhangliuyan <zhangliuyan@huawei.com> - 30-11
|
||||||
- add kmodtool.py macros.kmp
|
- add kmodtool.py macros.kmp
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@ def get_rpmtemplate(kmod_name,verrel):
|
|||||||
print("This package provides the " + kmod_name + " kernel modules built for the Linux")
|
print("This package provides the " + kmod_name + " kernel modules built for the Linux")
|
||||||
print("kernel "+ verrel + " for the %{_target_cpu} family of processors.")
|
print("kernel "+ verrel + " for the %{_target_cpu} family of processors.")
|
||||||
print("%post -n kmod-" + kmod_name)
|
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(" /sbin/depmod -aeF /boot/System.map-" + verrel +" " + verrel +"> /dev/null || :")
|
||||||
print("fi")
|
print("fi")
|
||||||
if (kmp !=""):
|
if (kmp !=""):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user