aboutsummaryrefslogtreecommitdiffstats
path: root/build/package.php
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-10-15 18:24:41 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-10-15 18:24:41 +0200
commitf6171f03917a632396053ec6a459996d84794fff (patch)
tree03da36baffe129f7a481d60b464e880d00f430e5 /build/package.php
parent2974353101ae60dc13f0de938920765d7a78dc95 (diff)
downloadforums-f6171f03917a632396053ec6a459996d84794fff.tar
forums-f6171f03917a632396053ec6a459996d84794fff.tar.gz
forums-f6171f03917a632396053ec6a459996d84794fff.tar.bz2
forums-f6171f03917a632396053ec6a459996d84794fff.tar.xz
forums-f6171f03917a632396053ec6a459996d84794fff.zip
[ticket/14240] Fix packaging script for 3.2
PHPBB3-14240
Diffstat (limited to 'build/package.php')
-rwxr-xr-xbuild/package.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/build/package.php b/build/package.php
index 37a2250fce..5b5f6fdfea 100755
--- a/build/package.php
+++ b/build/package.php
@@ -196,9 +196,10 @@ if (sizeof($package->old_packages))
*/
$copy_relative_directories = array(
'config/' => array(
+ 'recursive' => true,
'copied' => false,
'copy' => array(
- 'config/*.yml' => 'config',
+ 'config/*' => 'config',
),
),
);
@@ -256,7 +257,15 @@ if (sizeof($package->old_packages))
}
$source_dir_files = $package->locations['old_versions'] . $package->get('simple_name') . '/' . $source_dir_files;
$destination_dir = $dest_filename_dir . '/install/update/new/' . $destination_dir;
- $package->run_command('cp ' . $source_dir_files . ' ' . $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);
+ }
}
$copy_relative_directories[$reference]['copied'] = true;
}