From 98b034be705df2d5c9b02b111c34bda21ac44c1b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 31 Mar 2021 14:30:53 +0200 Subject: [PATCH] Open archive in `DevtoolsPackageArchive` only once Close #3961 --- .../system/devtools/package/DevtoolsPackageArchive.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php index d1d64df7ee..84610a40a7 100644 --- a/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/devtools/package/DevtoolsPackageArchive.class.php @@ -34,6 +34,10 @@ class DevtoolsPackageArchive extends PackageArchive */ public function openArchive() { + if ($this->tar) { + return; + } + $projectDir = FileUtil::addTrailingSlash( FileUtil::unifyDirSeparator(\realpath(\dirname($this->packageXmlPath))) ); -- 2.20.1