Index: modules/project/release/package-release-nodes.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project/release/package-release-nodes.php,v retrieving revision 1.16 diff -u -p -r1.16 package-release-nodes.php --- modules/project/release/package-release-nodes.php 8 Jun 2007 06:47:11 -0000 1.16 +++ modules/project/release/package-release-nodes.php 18 Jun 2007 01:13:26 -0000 @@ -68,6 +68,7 @@ $dest_rel = 'files/projects'; // the script will find these tools in your PATH. $tar = '/usr/bin/tar'; $gzip = '/usr/bin/gzip'; +$find = '/usr/bin/find'; $cvs = '/usr/bin/cvs'; $ln = '/bin/ln'; $rm = '/bin/rm'; @@ -219,7 +220,7 @@ function package_releases($type, $projec function package_release_core($nid, $uri, $version, $rev) { global $tmp_dir, $repositories, $dest_root, $dest_rel; - global $cvs, $tar, $gzip, $rm; + global $cvs, $tar, $gzip, $find, $rm; $rid = 1; if (!drupal_chdir($tmp_dir)) { @@ -257,6 +258,9 @@ function package_release_core($nid, $uri } } + drupal_exec("$find $id -type d -exec chmod 755 {} \;"); + drupal_exec("$find $id -type f -exec chmod 644 {} \;"); + if (!drupal_exec("$tar -c --file=- $id | $gzip -9 --no-name > $full_dest")) { return false; } @@ -273,7 +277,7 @@ function package_release_core($nid, $uri function package_release_contrib($nid, $uri, $version, $rev, $dir) { global $tmp_dir, $repositories, $dest_root, $dest_rel; - global $cvs, $tar, $gzip, $rm, $ln; + global $cvs, $tar, $gzip, $find, $rm, $ln; global $msgcat, $msgattrib, $msgfmt; global $license, $trans_install; @@ -381,6 +385,9 @@ function package_release_contrib($nid, $ $to_tar = $uri; } + drupal_exec("$find $uri -type d -exec chmod 755 {} \;"); + drupal_exec("$find $uri -type f -exec chmod 644 {} \;"); + // 'h' is for dereference, we want to include the files, not the links if (!drupal_exec("$tar -ch --file=- $to_tar | $gzip -9 --no-name > $full_dest")) { return false;