Skip to content

Commit 9fe1ae4

Browse files
Addressing few review comments
1 parent b6ea57d commit 9fe1ae4

6 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/Microsoft.DotNet.Build.Tasks.Installers/src/ArWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Text;
99
using System.Threading.Tasks;
1010

11-
namespace Microsoft.DotNet.Build.Tasks.Installers.src
11+
namespace Microsoft.DotNet.Build.Tasks.Installers
1212
{
1313
internal sealed class ArWriter : IDisposable
1414
{

src/Microsoft.DotNet.Build.Tasks.Installers/src/CreateDebPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text;
77
using Microsoft.Build.Framework;
88

9-
namespace Microsoft.DotNet.Build.Tasks.Installers.src
9+
namespace Microsoft.DotNet.Build.Tasks.Installers
1010
{
1111
/// <summary>
1212
/// Create a .deb package from a control file and a data file.

src/Microsoft.DotNet.Build.Tasks.Installers/src/CreateLightCommandPackageDrop.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using Microsoft.Build.Framework;
5-
using Microsoft.DotNet.Build.Tasks.Installers.src;
65
using System.IO;
76
using System.Text;
87

src/Microsoft.DotNet.Build.Tasks.Installers/src/CreateRpmPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Text;
1010
using Microsoft.Build.Framework;
1111

12-
namespace Microsoft.DotNet.Build.Tasks.Installers.src
12+
namespace Microsoft.DotNet.Build.Tasks.Installers
1313
{
1414
/// <summary>
1515
/// Create a .deb package from a control file and a data file.

src/Microsoft.DotNet.Build.Tasks.Installers/src/CreateWixCommandPackageDropBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
using System.Xml.Linq;
1212
using System.Xml.XPath;
1313

14-
namespace Microsoft.DotNet.Build.Tasks.Installers.src
14+
namespace Microsoft.DotNet.Build.Tasks.Installers
1515
{
1616
public abstract class CreateWixCommandPackageDropBase : BuildTask
1717
{

src/Microsoft.DotNet.SignTool/src/ZipData.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using System.Data;
1313
using System.Diagnostics;
1414
using Microsoft.DotNet.Build.Tasks.Installers;
15-
using Microsoft.DotNet.Build.Tasks.Installers.src;
1615

1716
#if NET472
1817
using System.IO.Packaging;
@@ -397,7 +396,7 @@ private static IEnumerable<TarEntry> ReadTarGZipEntries(string path)
397396
private void RepackDebContainer(TaskLoggingHelper log, string tempDir)
398397
{
399398
// Data archive is the only expected nested part
400-
string dataArchive = NestedParts.Values.First().FileSignInfo.FullPath;
399+
string dataArchive = NestedParts.Values.Single().FileSignInfo.FullPath;
401400

402401
string controlArchive;
403402
try
@@ -444,7 +443,7 @@ private string GetUpdatedControlArchive(string debianPackage, string dataArchive
444443
Directory.CreateDirectory(dataLayout);
445444

446445
// Get the original control archive - to reuse package metadata and scripts
447-
var (relativePath, content, contentSize) = ReadDebContainerEntries(debianPackage, "control.tar").First();
446+
var (relativePath, content, contentSize) = ReadDebContainerEntries(debianPackage, "control.tar").Single();
448447
string controlArchive = Path.Combine(workingDir, relativePath);
449448
File.WriteAllBytes(controlArchive, ((MemoryStream)content).ToArray());
450449

0 commit comments

Comments
 (0)