aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-30 14:57:12 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-03-30 14:57:12 +0200
commitb8cb407da9feb95533c8384db6e5ad768a67774a (patch)
tree6f05a7ad0c674242d55648edd322d4f13e8bf145 /build
parent3e909711d2b8115f6a53a46be1e702a7fdc8a0c0 (diff)
downloadforums-b8cb407da9feb95533c8384db6e5ad768a67774a.tar
forums-b8cb407da9feb95533c8384db6e5ad768a67774a.tar.gz
forums-b8cb407da9feb95533c8384db6e5ad768a67774a.tar.bz2
forums-b8cb407da9feb95533c8384db6e5ad768a67774a.tar.xz
forums-b8cb407da9feb95533c8384db6e5ad768a67774a.zip
[ticket/12326] Do not add deleted files to the list of changed files
PHPBB3-12326
Diffstat (limited to 'build')
-rwxr-xr-xbuild/package.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/build/package.php b/build/package.php
index 89f9d9a1ee..00693fbe57 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?