aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-12-19 16:40:30 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-12-19 16:40:30 +0100
commitdf613892383298aa17d8c69d790d4be2a84283d3 (patch)
treeb0e04798382b6002043d74a9a3deb4266864d394 /build
parent4429022b98ed97dd91024edb45db8bfc7addf64e (diff)
downloadforums-df613892383298aa17d8c69d790d4be2a84283d3.tar
forums-df613892383298aa17d8c69d790d4be2a84283d3.tar.gz
forums-df613892383298aa17d8c69d790d4be2a84283d3.tar.bz2
forums-df613892383298aa17d8c69d790d4be2a84283d3.tar.xz
forums-df613892383298aa17d8c69d790d4be2a84283d3.zip
[ticket/12030] Fix wrong file and directory names
PHPBB3-12030
Diffstat (limited to 'build')
-rwxr-xr-xbuild/package.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/package.php b/build/package.php
index 4d9e43f4a3..d8ae1f94ff 100755
--- a/build/package.php
+++ b/build/package.php
@@ -206,6 +206,8 @@ if (sizeof($package->old_packages))
continue;
}
+ $filename = $file;
+
// Create Directories along the way?
$file = explode('/', $file);
// Remove filename portion
@@ -230,15 +232,15 @@ if (sizeof($package->old_packages))
foreach ($copy_relative_directories as $reference => $data)
{
// Copy all relative referenced files if needed
- if (strpos($file, $reference) === 0 && !$data['copied'])
+ if (strpos($filename, $reference) === 0 && !$data['copied'])
{
foreach ($data['copy'] as $source_dir_files => $destination_dir)
{
// Create Directories along the way?
- $directories = explode('/', $directory);
+ $directories = explode('/', $destination_dir);
chdir($dest_filename_dir . '/install/update/new');
- foreach ($destination_dir as $dir)
+ foreach ($directories as $dir)
{
$dir = trim($dir);
if ($dir)
@@ -252,7 +254,6 @@ 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);
}
$copy_relative_directories[$reference]['copied'] = true;