rpms/xorg-x11-drv-nvidia/devel xorg-x11-drv-nvidia.spec,1.115,1.116

Nicolas Chauvet kwizart at rpmfusion.org
Tue Aug 20 19:35:08 CEST 2013


Author: kwizart

Update of /cvs/nonfree/rpms/xorg-x11-drv-nvidia/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv8788

Modified Files:
	xorg-x11-drv-nvidia.spec 
Log Message:
Remove .run installed driver if present on pre-installation



Index: xorg-x11-drv-nvidia.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xorg-x11-drv-nvidia/devel/xorg-x11-drv-nvidia.spec,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -r1.115 -r1.116
--- xorg-x11-drv-nvidia.spec	20 Aug 2013 17:11:42 -0000	1.115
+++ xorg-x11-drv-nvidia.spec	20 Aug 2013 17:35:08 -0000	1.116
@@ -240,6 +240,12 @@
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/nvidia
 
 
+%pre
+if [ "$1" -eq "1" ]; then
+  if [ -x %{_bindir}/nvidia-uninstall ]; then
+    %{_bindir}/nvidia-uninstall -s && rm -f %{_bindir}/nvidia-uninstall &>/dev/null || :
+  fi
+fi
 
 %post
 if [ "$1" -eq "1" ]; then


More information about the rpmfusion-commits mailing list