mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Correct detection of which ZIP files must be copied and which
ones must be recompressed.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2017-05-11 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Workers.cs:
|
||||
Correct detection of which ZIP files must be copied and
|
||||
which ones must be recompressed.
|
||||
|
||||
2017-05-11 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Workers.cs:
|
||||
|
||||
@@ -1107,13 +1107,14 @@ namespace osrepodbmgr.Core
|
||||
|
||||
if(format == "Zip")
|
||||
{
|
||||
Context.copyArchive = true;
|
||||
ZipFile zf = ZipFile.Read(Context.path);
|
||||
foreach(ZipEntry ze in zf)
|
||||
{
|
||||
// ZIP created with Mac OS X, need to be extracted with The UnArchiver to get correct ResourceFork structure
|
||||
if(ze.FileName.StartsWith("__MACOSX", StringComparison.CurrentCulture))
|
||||
{
|
||||
Context.copyArchive = true;
|
||||
Context.copyArchive = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user