From 31e47c6677355d676d257a1b42eab5c9b2db8179 Mon Sep 17 00:00:00 2001 From: Xavier Decoster Date: Thu, 21 Jan 2016 17:44:47 +0100 Subject: [PATCH] fix NuGet.Core issue in OptimizedZipPackage failing nuget pack when encountering non-compliant OPC packages https://github.com/NuGet/Home/issues/1921 --- src/Core/Packages/OptimizedZipPackage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Packages/OptimizedZipPackage.cs b/src/Core/Packages/OptimizedZipPackage.cs index fa9b20c46..4fb86058d 100644 --- a/src/Core/Packages/OptimizedZipPackage.cs +++ b/src/Core/Packages/OptimizedZipPackage.cs @@ -254,7 +254,7 @@ private void EnsurePackageFiles() Package package = Package.Open(stream); // unzip files inside package var files = from part in package.GetParts() - where ZipPackage.IsPackageFile(part, package.PackageProperties.Identifier) + where ZipPackage.IsPackageFile(part, Id) select part; // now copy all package's files to disk