]> git.pld-linux.org Git - projects/distfiles.git/commitdiff
- make sure files from dropin are readable on ftp/distfiles
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 5 Jan 2014 13:33:15 +0000 (14:33 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 5 Jan 2014 13:33:15 +0000 (14:33 +0100)
file-fetcher.pl

index 4f12be71aeb7dbaf35be44d5508c5b26942c5391..173e490a24158cccd8c0969463a48523d1c91e94 100755 (executable)
@@ -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";
This page took 0.112467 seconds and 4 git commands to generate.