preun: fix removal of previous dkms builds and installations of module [release 520.56.06-2mamba;Sat Oct 29 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 07:44:43 +01:00
parent 9c16681f83
commit 60a551b98f

View File

@ -3,7 +3,7 @@
Name: nvidia
Version: 520.56.06
Epoch: 1
Release: 1mamba
Release: 2mamba
Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel
Group: System/Kernel and Hardware
Vendor: openmamba
@ -306,12 +306,9 @@ fi
%preun -n xorg-drv-video-%{name}
# erase
dkms remove -q -m nvidia -v %{version} --all
if [ $1 -eq 0 ]; then
dkms remove -q -m nvidia -v %{version} --all
/sbin/ldconfig
/sbin/depmod -a -F /boot/System.map-`uname -r` \
`uname -r` &>/dev/null
fi
:
@ -359,6 +356,9 @@ fi
%doc current/{NVIDIA_Changelog,README.txt} current/html
%changelog
* Sat Oct 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 520.56.06-2mamba
- preun: fix removal of previous dkms builds and installations of module
* Fri Oct 14 2022 Automatic Build System <autodist@mambasoft.it> 520.56.06-1mamba
- automatic version update by autodist