mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/14240] Fix packaging script for 3.2
PHPBB3-14240
This commit is contained in:
parent
2974353101
commit
f6171f0391
2 changed files with 12 additions and 2 deletions
|
@ -196,9 +196,10 @@ if (sizeof($package->old_packages))
|
||||||
*/
|
*/
|
||||||
$copy_relative_directories = array(
|
$copy_relative_directories = array(
|
||||||
'config/' => array(
|
'config/' => array(
|
||||||
|
'recursive' => true,
|
||||||
'copied' => false,
|
'copied' => false,
|
||||||
'copy' => array(
|
'copy' => array(
|
||||||
'config/*.yml' => 'config',
|
'config/*' => 'config',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -256,8 +257,16 @@ if (sizeof($package->old_packages))
|
||||||
}
|
}
|
||||||
$source_dir_files = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $source_dir_files;
|
$source_dir_files = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $source_dir_files;
|
||||||
$destination_dir = $dest_filename_dir . '/install/update/new/' . $destination_dir;
|
$destination_dir = $dest_filename_dir . '/install/update/new/' . $destination_dir;
|
||||||
|
|
||||||
|
if (isset($data['recursive']) && $data['recursive'])
|
||||||
|
{
|
||||||
|
$package->run_command('cp -Rp ' . $source_dir_files . ' ' . $destination_dir);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$package->run_command('cp ' . $source_dir_files . ' ' . $destination_dir);
|
$package->run_command('cp ' . $source_dir_files . ' ' . $destination_dir);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$copy_relative_directories[$reference]['copied'] = true;
|
$copy_relative_directories[$reference]['copied'] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# phpBB's config file (This line is needed because of the packager)
|
Loading…
Add table
Reference in a new issue