Merge pull request #5804 from msiebeneicher/bugfix/fix_rename_usage_in_archive_manager_for_v1_2
fixed direct rename() usage for v1.2pull/5829/head
commit
d4547fba06
|
@ -164,7 +164,7 @@ class ArchiveManager
|
||||||
$filesystem->ensureDirectoryExists(dirname($tempTarget));
|
$filesystem->ensureDirectoryExists(dirname($tempTarget));
|
||||||
|
|
||||||
$archivePath = $usableArchiver->archive($sourcePath, $tempTarget, $format, $package->getArchiveExcludes());
|
$archivePath = $usableArchiver->archive($sourcePath, $tempTarget, $format, $package->getArchiveExcludes());
|
||||||
rename($archivePath, $target);
|
$filesystem->rename($archivePath, $target);
|
||||||
|
|
||||||
// cleanup temporary download
|
// cleanup temporary download
|
||||||
if (!$package instanceof RootPackageInterface) {
|
if (!$package instanceof RootPackageInterface) {
|
||||||
|
|
Loading…
Reference in New Issue