mirror of
https://github.com/claunia/osrepodbmgr.git
synced 2025-12-16 19:14:25 +00:00
Check slash orientation as DotNetZip is always unix-like even on
Windows.
This commit is contained in:
@@ -1679,7 +1679,10 @@ namespace osrepodbmgr.Core
|
||||
{
|
||||
DBFile file;
|
||||
if(!Context.hashes.TryGetValue(entryName, out file))
|
||||
throw new ArgumentException("Cannot find requested zip entry in hashes dictionary");
|
||||
{
|
||||
if (!Context.hashes.TryGetValue(entryName.Replace('/', '\\'), out file))
|
||||
throw new ArgumentException("Cannot find requested zip entry in hashes dictionary");
|
||||
}
|
||||
|
||||
// Special case for empty file, as it seems to crash when SharpCompress tries to unLZMA it.
|
||||
if(file.Length == 0)
|
||||
|
||||
Reference in New Issue
Block a user