]> git.pld-linux.org Git - packages/XFree86.git/commitdiff
- umask in scripts, other fixes/cosmetics where needed
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Dec 2002 01:44:29 +0000 (01:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    XFree86.spec -> 1.355

XFree86.spec

index 2b1a4ca4ae007ea38910754232e6211f424726d7..431c5131e238053842899f6d2c6ec0500b928766 100644 (file)
@@ -1985,12 +1985,14 @@ rm -rf $RPM_BUILD_ROOT
 %postun        OpenGL-libs -p /sbin/ldconfig
 
 %post libs
-grep "^%{_libdir}$" /etc/ld.so.conf >/dev/null 2>&1
+umask 022
+grep -qs "^%{_libdir}$" /etc/ld.so.conf
 [ $? -ne 0 ] && echo "%{_libdir}" >> /etc/ld.so.conf
 /sbin/ldconfig
 
 %postun libs
 if [ "$1" = "0" ]; then
+       umask 022
        grep -v "%{_libdir}" /etc/ld.so.conf > /etc/ld.so.conf.new
        mv -f /etc/ld.so.conf.new /etc/ld.so.conf
 fi
@@ -1998,7 +2000,7 @@ fi
 
 %verifyscript libs
 echo -n "Looking for %{_libdir} in /etc/ld.so.conf... "
-if ! grep "^%{_libdir}$" /etc/ld.so.conf > /dev/null; then
+if ! grep -q "^%{_libdir}$" /etc/ld.so.conf ; then
        echo "missing"
        echo "%{_libdir} missing from /etc/ld.so.conf" >&2
 else
This page took 0.046361 seconds and 4 git commands to generate.