Fix dependencies of %%post

I forgot this dependency when moved depmod.

DEBUG util.py:446:    Installing       : kernel-modules-nvidia510-5.15-generic-510.85-319   141/185
DEBUG util.py:446:    Running scriptlet: kernel-modules-nvidia510-5.15-generic-510.85-319   141/185
DEBUG util.py:446:  /var/tmp/rpm-tmp.0PDSBP: line 6: /usr/sbin/depmod: No such file or directory
This commit is contained in:
Mikhail Novosyolov 2022-10-18 23:16:44 +03:00
parent 22b71299b9
commit 443fd07142
2 changed files with 3 additions and 2 deletions

View file

@ -3,8 +3,8 @@ Name: auto-krokodil
Group: System/Kernel and hardware
License: GPLv3
Url: https://abf.io/import/auto-krokodil
Version: 0.22
Release: 2
Version: 0.23
Release: 1
BuildArch: noarch
%ifarch %{ix86} %{x86_64}
# for php -l (syntax check)

View file

@ -63,6 +63,7 @@ Requires: kernel-abi(%{-p*}) \
# modules dependencies must be installed when depmod is run \
Requires(post): kernel-abi(%{-p*}) \
Requires(post): update-alternatives \
Requires(post): %{_sbindir}/depmod \
Requires(postun): update-alternatives \
Requires(posttrans): %{_sbindir}/depmod \
%description -n %{pkg} \