SPECS (AC-branch): poldek.spec - fix older triggers not having /et...

glen glen at pld-linux.org
Sat Jul 30 16:06:04 CEST 2005


Author: glen                         Date: Sat Jul 30 14:06:04 2005 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- fix older triggers not having /etc/poldek.conf

---- Files affected:
SPECS:
   poldek.spec (1.197.2.21 -> 1.197.2.22) 

---- Diffs:

================================================================
Index: SPECS/poldek.spec
diff -u SPECS/poldek.spec:1.197.2.21 SPECS/poldek.spec:1.197.2.22
--- SPECS/poldek.spec:1.197.2.21	Sat Jul 30 16:03:07 2005
+++ SPECS/poldek.spec	Sat Jul 30 16:05:59 2005
@@ -185,12 +185,16 @@
 %postun	libs -p /sbin/ldconfig
 
 %triggerpostun -- poldek <= 0.18.3-5
-sed -i -e '/^promoteepoch:.*yes/s/^/#/' %{_sysconfdir}/poldek.conf
+if [ -f /etc/poldek.conf ]; then
+	sed -i -e '/^promoteepoch:.*yes/s/^/#/' /etc/poldek.conf
+fi
 
 # otherwise don't touch
 %ifarch i386 i586 i686 ppc sparc alpha amd64 athlon
 %triggerpostun -- poldek <= 0.18.7-1
-sed -i -e 's://ftp.pld-linux.org://ftp.ac.pld-linux.org:g' /etc/poldek.conf
+if [ -f /etc/poldek.conf ]; then
+	sed -i -e 's://ftp.pld-linux.org://ftp.ac.pld-linux.org:g' /etc/poldek.conf
+fi
 %endif
 
 %triggerpostun -- poldek < 0.19.0-1.20050613.22.0
@@ -255,6 +259,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.197.2.22  2005/07/30 14:05:59  glen
+- fix older triggers not having /etc/poldek.conf
+
 Revision 1.197.2.21  2005/07/30 14:03:07  glen
 - notify user that sources were converted
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/poldek.spec?r1=1.197.2.21&r2=1.197.2.22&f=u




More information about the pld-cvs-commit mailing list