From: ttp Date: Sun, 21 Oct 2018 15:13:18 +0000 (+0900) Subject: チケット #38687 tar.gz 形式が 7-ZIP32.DLL がインストールされている環境下で正しく展開されない X-Git-Url: http://git.osdn.net/view?p=applistation%2FAppliStation.git;a=commitdiff_plain;h=78c0e2753fa94245f0edc97a195fe50c04a4eb79 チケット #38687 tar.gz 形式が 7-ZIP32.DLL がインストールされている環境下で正しく展開されない --- diff --git a/na-get-lib/NaGet.InteropServices/CommonArchiverExtracter.cs b/na-get-lib/NaGet.InteropServices/CommonArchiverExtracter.cs index 714d812..9e6ed93 100644 --- a/na-get-lib/NaGet.InteropServices/CommonArchiverExtracter.cs +++ b/na-get-lib/NaGet.InteropServices/CommonArchiverExtracter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.InteropServices; using System.IO; @@ -140,11 +140,11 @@ namespace NaGet.InteropServices /// アーカイバDLLの設定 /// public static readonly CommonArchiverDllConfig[] Configs = { + new CommonArchiverDllConfig("TAR32", "Tar", "-x \"{0}\" -o \"{1}\"", 218), // 7-ZIP32.DLL が tar.gz などをハンドルしないよう TAR32 を優先させる new CommonArchiverDllConfig("7-ZIP32", "SevenZip", "x -y \"{0}\" \"-o{1}\"", 423), new CommonArchiverDllConfig("UNZIP32", "UnZip", "-x -o \"{0}\" \"{1}\" *", 541), new CommonArchiverDllConfig("UNLHA32", "Unlha", "x \"{0}\" \"{1}\" *", 240), new CommonArchiverDllConfig("CAB32", "Cab", "-x \"{0}\" \"{1}\" *", 98), - new CommonArchiverDllConfig("TAR32", "Tar", "-x \"{0}\" -o \"{1}\"", 218), new CommonArchiverDllConfig("UNGCA32", "UnGCA", "e \"{0}\" \"{1}\"", 10), // いるかな? //new CommonArchiverDllConfig("UNRAR32", "Unrar", "x -y \"{0}\" \"{1}\" *", -1),