mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 20:56:40 +02:00
[ticket/12326] Do not add deleted files to the list of changed files
PHPBB3-12326
This commit is contained in:
@ -139,6 +139,12 @@ if (sizeof($package->old_packages))
|
|||||||
{
|
{
|
||||||
unset($file_contents['all'][$index]);
|
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
|
// 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;
|
$source_filename = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $file;
|
||||||
$dest_filename = $dest_filename_dir . '/install/update/new/' . $file;
|
$dest_filename = $dest_filename_dir . '/install/update/new/' . $file;
|
||||||
|
|
||||||
if (!file_exists($source_filename))
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$filename = $file;
|
$filename = $file;
|
||||||
|
|
||||||
// Create Directories along the way?
|
// Create Directories along the way?
|
||||||
|
Reference in New Issue
Block a user