]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
fix chmod again
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 19 Apr 2001 23:24:06 +0000 (23:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.76

builder.sh

index 82120fad613ff0cd43c12581cc02c78dc1480f7d..a8551c94dce4af494cd1cf6ab0dc7ce89e824e3e 100644 (file)
@@ -199,7 +199,7 @@ get_spec()
        Exit_error err_no_spec_in_repo;
        fi
     
-    if [ "$CHMOD" = "yes" ]; then
+    if [ "$CHMOD" = "yes" -a -n "$SPECFILE" ]; then
         chmod 444 $SPECFILE
     fi
     unset OPTIONS
@@ -255,7 +255,10 @@ get_files()
        done
        
        if [ "$CHMOD" = "yes" ]; then
-           chmod 444 `nourl $GET_FILES`
+           CHMOD_FILES="`nourl $GET_FILES`"
+           if [ -n "$CHMOD_FILES" ]; then
+                   chmod 444 $CHMOD_FILES
+           fi
        fi
        unset OPTIONS
     fi
@@ -446,6 +449,9 @@ esac
 cd $__PWD
 
 # $Log$
+# Revision 1.75  2001/04/19 23:14:25  misiek
+# redirect errors from query to /dev/null
+#
 # Revision 1.74  2001/04/02 15:39:29  misiek
 # fix problems with get_files when no files passed
 #
This page took 0.029967 seconds and 4 git commands to generate.