From 202377d120df8670eca37760385d1f3616b6f8a1 Mon Sep 17 00:00:00 2001 From: ttp Date: Sun, 24 Jul 2011 00:10:41 +0900 Subject: [PATCH] =?utf8?q?na-get-lib,=E8=A4=87=E6=95=B0=E3=82=BD=E3=83=95?= =?utf8?q?=E3=83=88=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB?= =?utf8?q?=E3=81=8B=E3=81=A4=E3=83=8F=E3=83=83=E3=82=B7=E3=83=A5=E6=A4=9C?= =?utf8?q?=E8=A8=BC=E5=A4=B1=E6=95=97=E3=81=97=E3=81=9F=E3=81=A8=E3=81=8D?= =?utf8?q?=E3=80=81=E3=83=8F=E3=83=83=E3=82=B7=E3=83=A5=E6=A4=9C=E8=A8=BC?= =?utf8?q?=E6=88=90=E5=8A=9F=E3=81=97=E3=81=9F=E3=82=BD=E3=83=95=E3=83=88?= =?utf8?q?=E3=81=AE=E7=8A=B6=E6=85=8B=E3=81=8C=E3=81=8A=E3=81=8B=E3=81=97?= =?utf8?q?=E3=81=8F=E3=81=AA=E3=82=8B=E4=B8=8D=E5=85=B7=E5=90=88=E3=82=92?= =?utf8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- na-get-lib/NaGet.SubCommands.SubTask/VerifyInstallerFileSubTask.cs | 3 ++- na-get-lib/NaGet.SubCommands/NaGetDownloadToCache2.cs | 3 ++- na-get-lib/NaGet.SubCommands/NaGetInstall2.cs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/na-get-lib/NaGet.SubCommands.SubTask/VerifyInstallerFileSubTask.cs b/na-get-lib/NaGet.SubCommands.SubTask/VerifyInstallerFileSubTask.cs index 829d5df..3f1bd27 100644 --- a/na-get-lib/NaGet.SubCommands.SubTask/VerifyInstallerFileSubTask.cs +++ b/na-get-lib/NaGet.SubCommands.SubTask/VerifyInstallerFileSubTask.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using NaGet.Tasks; using NaGet.Packages; using NaGet.Packages.Install; @@ -14,7 +15,7 @@ namespace NaGet.SubCommands.SubTask public VerifyInstallerFileSubTask(IList insts) { - installations = insts; + installations = new ReadOnlyCollection(insts); } public IList InvalidInstallers { diff --git a/na-get-lib/NaGet.SubCommands/NaGetDownloadToCache2.cs b/na-get-lib/NaGet.SubCommands/NaGetDownloadToCache2.cs index 1f3ac22..94cfe29 100644 --- a/na-get-lib/NaGet.SubCommands/NaGetDownloadToCache2.cs +++ b/na-get-lib/NaGet.SubCommands/NaGetDownloadToCache2.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using NaGet.Packages; using NaGet.Packages.Install; using NaGet.SubCommands; @@ -33,7 +34,7 @@ namespace NaGet.SubCommands /// インストール処理の配列 public NaGetDownloadToCache2(PackageListsManager pkgMan, IList insts) { - installations = insts; + installations = new ReadOnlyCollection(insts); scanner = new DownloadScannerService(); scanner.Init(); diff --git a/na-get-lib/NaGet.SubCommands/NaGetInstall2.cs b/na-get-lib/NaGet.SubCommands/NaGetInstall2.cs index dffebac..9e215e0 100644 --- a/na-get-lib/NaGet.SubCommands/NaGetInstall2.cs +++ b/na-get-lib/NaGet.SubCommands/NaGetInstall2.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using NaGet.Packages; using NaGet.Packages.Install; using NaGet.SubCommands; @@ -36,7 +37,7 @@ namespace NaGet.SubCommands public NaGetInstall2(PackageListsManager pkgMan, IList insts) { pkgListMan = pkgMan; - installations = insts; + installations = new ReadOnlyCollection(insts); scanner = new DownloadScannerService(); scanner.Init(); -- 2.11.0