OSDN Git Service

na-get-lib,複数ソフトインストールかつハッシュ検証失敗したとき、ハッシュ検証成功したソフトの状態がおかしくなる不具合を修正
authorttp <ttp@users.sourceforge.jp>
Sat, 23 Jul 2011 15:10:41 +0000 (00:10 +0900)
committerttp <ttp@users.sourceforge.jp>
Sat, 23 Jul 2011 15:10:41 +0000 (00:10 +0900)
na-get-lib/NaGet.SubCommands.SubTask/VerifyInstallerFileSubTask.cs
na-get-lib/NaGet.SubCommands/NaGetDownloadToCache2.cs
na-get-lib/NaGet.SubCommands/NaGetInstall2.cs

index 829d5df..3f1bd27 100644 (file)
@@ -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<Installation> insts)
                {
-                       installations = insts;
+                       installations = new ReadOnlyCollection<Installation>(insts);
                }
                
                public IList<Installation> InvalidInstallers {
index 1f3ac22..94cfe29 100644 (file)
@@ -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
                /// <param name="installations">インストール処理の配列</param>
                public NaGetDownloadToCache2(PackageListsManager pkgMan, IList<Installation> insts)
                {
-                       installations = insts;
+                       installations = new ReadOnlyCollection<Installation>(insts);
                        
                        scanner = new DownloadScannerService();
                        scanner.Init();
index dffebac..9e215e0 100644 (file)
@@ -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<Installation> insts)
                {
                        pkgListMan = pkgMan;
-                       installations = insts;
+                       installations = new ReadOnlyCollection<Installation>(insts);
                        
                        scanner = new DownloadScannerService();
                        scanner.Init();