Skip to content

Commit

Permalink
(#1901) Revert commit to display location
Browse files Browse the repository at this point in the history
Based on some testing that was completed, we can't bring in this change
currently, since we can't provide the same functionality in CLE without
bumping the version number of the CLI dependency in the nuspec file.
This is not something that we are ready to do, so taking out this
change, and the issue will be moved to the next milestone.
  • Loading branch information
gep13 committed May 31, 2024
1 parent 2fd00fa commit c74a19c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ public virtual IEnumerable<PackageResult> List(ChocolateyConfiguration config)

ChocolateyPackageMetadata packageLocalMetadata;
string packageInstallLocation = null;
string deploymentLocation = null;
if (package.PackagePath != null && !string.IsNullOrWhiteSpace(package.PackagePath))
{
packageLocalMetadata = new ChocolateyPackageMetadata(package.PackagePath, _fileSystem);
Expand All @@ -218,7 +217,6 @@ public virtual IEnumerable<PackageResult> List(ChocolateyConfiguration config)
}
}

deploymentLocation = packageInfo.DeploymentLocation;
if (!string.IsNullOrWhiteSpace(packageInfo.Arguments))
{
var decryptedArguments = ArgumentsUtility.DecryptPackageArgumentsFile(_fileSystem, packageInfo.Package.Id, packageInfo.Package.Version.ToNormalizedStringChecked());
Expand Down Expand Up @@ -251,7 +249,7 @@ public virtual IEnumerable<PackageResult> List(ChocolateyConfiguration config)
Tags: {9}
Software Site: {10}
Software License: {11}{12}{13}{14}{15}{16}
Description: {17}{18}{19}{20}
Description: {17}{18}{19}
".FormatWith(
package.Title.EscapeCurlyBraces(),
package.Published.GetValueOrDefault().UtcDateTime.ToShortDateString(),
Expand Down Expand Up @@ -286,7 +284,6 @@ public virtual IEnumerable<PackageResult> List(ChocolateyConfiguration config)
package.Summary != null && !string.IsNullOrWhiteSpace(package.Summary.ToStringSafe()) ? "\r\n Summary: {0}".FormatWith(package.Summary.EscapeCurlyBraces().ToStringSafe()) : string.Empty,
package.Description.EscapeCurlyBraces().Replace("\n ", "\n").Replace("\n", "\n "),
!string.IsNullOrWhiteSpace(package.ReleaseNotes.ToStringSafe()) ? "{0} Release Notes: {1}".FormatWith(Environment.NewLine, package.ReleaseNotes.EscapeCurlyBraces().Replace("\n ", "\n").Replace("\n", "\n ")) : string.Empty,
!string.IsNullOrWhiteSpace(deploymentLocation) ? "{0} Deployed to: '{1}'".FormatWith(Environment.NewLine, deploymentLocation) : string.Empty,
packageArgumentsUnencrypted != null ? packageArgumentsUnencrypted : string.Empty
));
}
Expand Down

0 comments on commit c74a19c

Please sign in to comment.