From b1603250a5fc0bdaeaacd23eead54ffb4be34896 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 08 May 2007 16:57:00 +0000
Subject: [PATCH] The QuickSetup application's ZipExtractor assumes that the first zip entry from a ZipInputStream will be the root directory of all the entries in the zip which is apparently not always the case. This commit removes this assumption and instead removes the initial path by looking for the zip entry path file separator.
---
opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractor.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractor.java b/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractor.java
index 7de632d..78e3382 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractor.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractor.java
@@ -111,8 +111,8 @@
expandZipFile(buildFile);
}
} catch (Throwable t) {
+ LOG.log(Level.INFO, "unexpected error extracting build", t);
retCode = 1;
- notifyListeners(t.getLocalizedMessage() + getLineBreak());
}
LOG.log(Level.INFO, "extractor exiting code=" + retCode);
System.exit(retCode);
--
Gitblit v1.10.0