Use DotNetZip to test for ZIP file.

This commit is contained in:
2017-05-11 02:51:31 +01:00
parent 9f55ac4d2e
commit af85b89af8
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2017-05-11 Natalia Portillo <claunia@claunia.com>
* Workers.cs:
Use DotNetZip to test for ZIP file.
2017-05-11 Natalia Portillo <claunia@claunia.com>
* Workers.cs:

View File

@@ -1105,7 +1105,7 @@ namespace osrepodbmgr.Core
return;
}
if(format == "Zip")
if(ZipFile.IsZipFile(Context.path))
{
Context.copyArchive = true;
ZipFile zf = ZipFile.Read(Context.path);