!675 [sync] PR-672: Change %post script to %posttrans

From: @openeuler-sync-bot 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
This commit is contained in:
openeuler-ci-bot 2024-12-18 07:59:45 +00:00 committed by Gitee
commit 20874e83d3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -11,7 +11,7 @@
Name: dpdk
Version: 23.11
Release: 24
Release: 25
URL: http://dpdk.org
Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz
@ -291,7 +291,7 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
%doc %{sdkdir}/examples
%endif
%post
%posttrans
if [ -e /sbin/weak-modules ]; then
echo "/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko" | /sbin/weak-modules --add-modules --no-initramfs
fi
@ -306,6 +306,9 @@ fi
/usr/sbin/depmod
%changelog
* Tue Dec 17 2024 chendexi <chendexi@kylinos.cn> - 23.11-25
- Change %post script to %posttrans.
* Mon Nov 11 2024 huangdengdui <huangdengui@huawei.com> - 23.11-24
Sync some patchs from upstreaming, includind some bugfixes, hns3 pmd
flow rule priority feature, hns3 pmd outer VLAN flow match feature,