mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Do not use DotNetZip to check if file is a ZIP. This library doesn't
work with Xamarin.Mac.
This commit is contained in:
@@ -1148,7 +1148,7 @@ namespace osrepodbmgr.Core
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ZipFile.IsZipFile(Context.path))
|
if(Context.archiveFormat == "Zip")
|
||||||
{
|
{
|
||||||
Context.unzipWithUnAr = true;
|
Context.unzipWithUnAr = true;
|
||||||
ZipFile zf = ZipFile.Read(Context.path, new ReadOptions { Encoding = Encoding.UTF8 });
|
ZipFile zf = ZipFile.Read(Context.path, new ReadOptions { Encoding = Encoding.UTF8 });
|
||||||
@@ -1215,7 +1215,7 @@ namespace osrepodbmgr.Core
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// If it's a ZIP file not created by Mac OS X, use DotNetZip to uncompress (unar freaks out or corrupts certain ZIP features)
|
// If it's a ZIP file not created by Mac OS X, use DotNetZip to uncompress (unar freaks out or corrupts certain ZIP features)
|
||||||
if(ZipFile.IsZipFile(Context.path) && !Context.unzipWithUnAr)
|
if(Context.archiveFormat == "Zip" && !Context.unzipWithUnAr)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user