summaryrefslogtreecommitdiff
path: root/package/inc
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2024-07-17 12:04:13 +0200
committerAndras Timar <andras.timar@collabora.com>2024-08-23 11:17:11 +0200
commit84276bb49252017719a8c23c06dc6459d8582ffe (patch)
treeba400a56cdfef6be58884b3572ba544bee1ded43 /package/inc
parent9bdde672e56c533b56fdd316d1f6cd5cbacfea63 (diff)
package: don't check case insensitive duplicates for ZIP package
Turns out there's a TexMaths extension that contains files with names differing only in case. https://ask.libreoffice.org/t/zipexception-when-installing-an-extension/108256 There isn't a separate ZipPackage mode for OXT so just don't check in the ZIP mode. Change-Id: I7680c93f5f24ac566a59b131b36d855bd85100b9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170616 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 0fb25ce9ff9a3ede8d43ee1502c44b4c02135b3f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170623 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'package/inc')
-rw-r--r--package/inc/ZipFile.hxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx
index d9910fde92a9..7e7de4bd67bc 100644
--- a/package/inc/ZipFile.hxx
+++ b/package/inc/ZipFile.hxx
@@ -52,9 +52,14 @@ class ZipEnumeration;
class ZipFile
{
+public:
+ enum class Checks { Default, CheckInsensitive };
+
+private:
rtl::Reference<comphelper::RefCountedMutex> m_aMutexHolder;
std::unordered_set<OUString> m_EntriesInsensitive;
+ Checks m_Checks;
EntryHash aEntries;
ByteGrabber aGrabber;
@@ -98,13 +103,9 @@ public:
ZipFile( rtl::Reference<comphelper::RefCountedMutex> aMutexHolder,
css::uno::Reference < css::io::XInputStream > const &xInput,
css::uno::Reference < css::uno::XComponentContext > xContext,
- bool bInitialise );
-
- ZipFile( rtl::Reference<comphelper::RefCountedMutex> aMutexHolder,
- css::uno::Reference < css::io::XInputStream > const &xInput,
- css::uno::Reference < css::uno::XComponentContext > xContext,
bool bInitialise,
- bool bForceRecover );
+ bool bForceRecover,
+ Checks checks);
~ZipFile();