From 7eb6d87046f521bdc7ee5b2322b37328b4ced8cc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 19 Jul 2013 14:01:55 +0200 Subject: [PATCH] Fixed a few issues preventing an update --- com.woltlab.wcf/files_pre_update.tar | Bin 0 -> 16384 bytes com.woltlab.wcf/package.xml | 2 ++ .../PackageInstallationConfirmPage.class.php | 1 + .../system/exception/SystemException.class.php | 2 +- .../files/lib/system/setup/Installer.class.php | 6 +++--- .../install/files/lib/util/FileUtil.class.php | 8 ++++++++ 6 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 com.woltlab.wcf/files_pre_update.tar diff --git a/com.woltlab.wcf/files_pre_update.tar b/com.woltlab.wcf/files_pre_update.tar new file mode 100644 index 0000000000000000000000000000000000000000..94db5fbe3460c3205910e896a7ecf84fa9e5201a GIT binary patch literal 16384 zcmeHOZF3XHmd;o4E83KAMow(Wb|6%dz%>C(sKwy2O{iVSszy@Fns_v$of+BIP5AHo zJm+-JizEvt3I6p-~QR#-F@)jf%(et zv%B!W`R?BC{+`*}-+QpXzxUleOf=@f{rmULSG#{ZCSL$9a^S~*LgaUnaANamII!kw zF#0fqKKyWJmg~2Co)>oV!CnvSw20E=!>K%Y?!Pb1jM5K>(5h9>U;I}z)v-I>Z@#%> zzA;bJqzI!VHzO?B$!r`Jc4$VkWWc@h4(IUSK{zYMY1TRlvw@AxJDXj|<3T!|XVLk% zXzlOr?(OXF?tN$8rE&2p?3)*p{?9Tgjs`Z#ZR^GBx8{}2bDNnLHnCY4o8ws@qvn;) zFh7oqV*0S#O{Z9p&ahV}&Ca_HK;Dhdr}2*aMq_y_@WHu@@Z7cr>7;Xo&Ev4&0V8EB zpY{DP`Km~R$n!Ltx1Oex$t;PAxjD=rf~!=h>fRYe32+mWG~^d8)ck&@MW(gD4UCUc z1GW`mGO+UK;4;iwA7p^vyLVdCEG_JS?8LMJL~iP`M<$uY5OAx4HyBUSp~1fzth~sg zj=IPs`=daItCvV=I1;1`7XqgMVrfG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`{5UTAMlPhRQT-8w%BoR=2rUb(rvdmJVW%@}v{>q*CaWx`TFop@95>x^WNEi9zQQNs1kJ@ znVrWZxrXwhhdJ{-;nIfZVlrYe>LGGRiaSu(@!K&k3-~Vtznr`-^8;LJ@Ha>h+fK5Ske@eWi}eyk?0KD!OPdDXHQYYA4 zd3k(Rbwp#0yLM)Be*E)s@6D-UH)xfKBh7=?X96f`guCEomn1I$XA$a(xZK8-t2b8q zYq!6PF|g*|jHI>UYl3%r@rL5pQb)YkH}~2=K&kjDp8(Y&pZvKr7eaM&88Gqj9fjN( zZa3)lYHHC7I{7%yman$ds)pQ#R zD=S>nn|=3f!m~OBDX+=|IAP;OqZ=T0?mFHpRf5_gp90{7n^Kr&JD=jlx)`;Cf2526 z5GM)E+qXl0+w6R&+i^Gk!w(rzUNiz=U4uB*zy>zCOR;&W9>^O;Rfyp0Cim}Gd$=0E zkhN;Ae>KJ9Q^|69b~-4Ac2LJhTlZ>opwFoGk_p*Ur$$^Sq6f<>d?ic65Iq+0ySdxG zCQ%7=!QJX6uX8u31vx3cAPZX44zIoN+h)qp2QR_* + files_pre_update.tar + files_update.tar acptemplates_update.tar language/*.xml diff --git a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php index 40129f9c98..06be9a978c 100644 --- a/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/PackageInstallationConfirmPage.class.php @@ -114,6 +114,7 @@ class PackageInstallationConfirmPage extends AbstractPage { $requirement['package'] = PackageCache::getInstance()->getPackageByIdentifier($requirement['name']); } + unset($requirement); } diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index 831e27f6f2..15229827b7 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -150,7 +150,7 @@ class SystemException extends LoggedException implements IPrintableException {
-

getDescription(); ?>

+ getDescription()) { ?>


getDescription(); ?>

Information:

diff --git a/wcfsetup/install/files/lib/system/setup/Installer.class.php b/wcfsetup/install/files/lib/system/setup/Installer.class.php index 6f9b6ba527..70ebd36834 100644 --- a/wcfsetup/install/files/lib/system/setup/Installer.class.php +++ b/wcfsetup/install/files/lib/system/setup/Installer.class.php @@ -152,7 +152,7 @@ class Installer { $this->createDir($dir); } catch (SystemException $e) { - $errors[] = array('file' => $dir, 'code' => $e->getCode(), 'message' => $e->getMessage()); + $errors[] = $e->getMessage(); } } @@ -162,11 +162,11 @@ class Installer { $this->createFile($file, $index, $tar); } catch (SystemException $e) { - $errors[] = array('file' => $file, 'code' => $e->getCode(), 'message' => $e->getMessage()); + $errors[] = $e->getMessage(); } } if (!empty($errors)) { - throw new SystemException('error(s) during the installation of the files.', $errors); + throw new SystemException('error(s) during the installation of the files.', 0, implode("
", $errors)); } $this->logFiles($files); diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index e0e69618fe..d070d2fa36 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -234,6 +234,14 @@ final class FileUtil { return $path; } + /** + * @todo Work-around for update, remove this after 2.0.0 Beta 5 + * @deprecated + */ + public static function unifyDirSeperator($path) { + return self::unifyDirSeparator($path); + } + /** * Scans a folder (and subfolder) for a specific file. * Returns the filename if found, otherwise false. -- 2.20.1