]> git.pld-linux.org Git - packages/X11.git/commitdiff
- use -s for checking config files (don't do anything, if files are empty)
authorhavner <havner@pld-linux.org>
Tue, 17 Aug 2004 22:10:17 +0000 (22:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    X11.spec -> 1.47

X11.spec

index 3980259455eba11398918eeb61cae36fc1a8bb3f..eeea65a817a2af9bbc5eca62eaf01bcda8dcd17d 100644 (file)
--- a/X11.spec
+++ b/X11.spec
@@ -2129,12 +2129,12 @@ if [ "$1" = "0" ]; then
 fi
 
 %triggerpostun xfs -- xfs
-if [ -r /etc/X11/fs/config.rpmsave ]; then
+if [ -s /etc/X11/fs/config.rpmsave ]; then
        cp -f /etc/X11/fs/config.rpmsave /etc/X11/fs/config
 fi
 
 %triggerpostun Xserver -- XFree86-Xserver
-if [ -r /etc/X11/XF86Config.rpmsave ]; then
+if [ -s /etc/X11/XF86Config.rpmsave ]; then
        cp -f /etc/X11/XF86Config.rpmsave /etc/X11/xorg.conf
        sed -i -e "s/xfree86/xorg/g" /etc/X11/xorg.conf
 fi
This page took 0.043458 seconds and 4 git commands to generate.