diff options
author | David King <imkingdavid@gmail.com> | 2014-03-30 16:03:11 -0400 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2014-03-30 16:03:11 -0400 |
commit | acb4d90371cfa2682e74e38c8e3bef087ace7600 (patch) | |
tree | c87a752c07f2bf5362b9febd93b77b03a30889a4 /build | |
parent | 1a6dc6e76721baab6f73d923d2434241538035bf (diff) | |
parent | badb16e68e201c42d30d35abba28b47e026d0a81 (diff) | |
download | forums-acb4d90371cfa2682e74e38c8e3bef087ace7600.tar forums-acb4d90371cfa2682e74e38c8e3bef087ace7600.tar.gz forums-acb4d90371cfa2682e74e38c8e3bef087ace7600.tar.bz2 forums-acb4d90371cfa2682e74e38c8e3bef087ace7600.tar.xz forums-acb4d90371cfa2682e74e38c8e3bef087ace7600.zip |
Merge remote-tracking branch 'nickvergessen/ticket/12326' into develop-ascraeus
* nickvergessen/ticket/12326:
[ticket/12326] Correctly format update/index.php and remove php closing tag
[ticket/12326] Do not add deleted files to the list of changed files
Diffstat (limited to 'build')
-rwxr-xr-x | build/package.php | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/build/package.php b/build/package.php index 89f9d9a1ee..00930abe65 100755 --- a/build/package.php +++ b/build/package.php @@ -139,6 +139,12 @@ if (sizeof($package->old_packages)) { unset($file_contents['all'][$index]); } + + $source_filename = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $file; + if (!file_exists($source_filename)) + { + unset($file_contents['all'][$index]); + } } // First of all, fill the 'old' directory @@ -200,12 +206,6 @@ if (sizeof($package->old_packages)) { $source_filename = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $file; $dest_filename = $dest_filename_dir . '/install/update/new/' . $file; - - if (!file_exists($source_filename)) - { - continue; - } - $filename = $file; // Create Directories along the way? @@ -276,29 +276,23 @@ $update_info = array( if (sizeof($file_contents['all'])) { - $index_contents .= '\'files\' => array(\'' . implode("',\n\t'", $file_contents['all']) . '\'), -'; + $index_contents .= "\t'files' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['all']) . "',\n\t),\n"; } else { - $index_contents .= '\'files\' => array(), -'; + $index_contents .= "\t'files' => array(),\n"; } if (sizeof($file_contents['binary'])) { - $index_contents .= '\'binary\' => array(\'' . implode("',\n\t'", $file_contents['binary']) . '\'), -'; + $index_contents .= "\t'binary' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['binary']) . "',\n\t),\n"; } else { - $index_contents .= '\'binary\' => array(), -'; + $index_contents .= "\t'binary' => array(),\n"; } - $index_contents .= '); - -?' . '>'; + $index_contents .= ");\n"; $fp = fopen($dest_filename_dir . '/install/update/index.php', 'wt'); fwrite($fp, $index_contents); |