[projects/distfiles] - make sure files from dropin are readable on ftp/distfiles

baggins baggins at pld-linux.org
Sun Jan 5 14:33:54 CET 2014


commit 025462c7539e07b23d7d4f361b8f284abc3f0ed9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jan 5 14:33:15 2014 +0100

    - make sure files from dropin are readable on ftp/distfiles

 file-fetcher.pl | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/file-fetcher.pl b/file-fetcher.pl
index 4f12be7..173e490 100755
--- a/file-fetcher.pl
+++ b/file-fetcher.pl
@@ -131,6 +131,9 @@ sub move_file($$$)
     }
     $local_copy = "$tmp_dir/$md5/$bn";
   }
+  # no-url local copy may have wrong permissions (it's created by ftp upload)
+  # always fix them
+  chmod(0644, $local_copy);
 
   if (open(D, "> $tmp_dir/$md5/$bn.desc")) {
     print D "URL: $url\n";
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/distfiles.git/commitdiff/025462c7539e07b23d7d4f361b8f284abc3f0ed9



More information about the pld-cvs-commit mailing list