Skip to content

Commit ef05daf

Browse files
authored
Merge pull request #3317 from TheCakeIsNaOH/gh1901-list-location
(#1901) Display software installation location
2 parents fa1111f + 630db66 commit ef05daf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/chocolatey/infrastructure.app/services/NugetService.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ it is possible that incomplete package lists are returned from a command
194194

195195
ChocolateyPackageMetadata packageLocalMetadata;
196196
string packageInstallLocation = null;
197+
string deploymentLocation = null;
197198
if (package.PackagePath != null && !string.IsNullOrWhiteSpace(package.PackagePath))
198199
{
199200
packageLocalMetadata = new ChocolateyPackageMetadata(package.PackagePath, _fileSystem);
@@ -215,6 +216,7 @@ it is possible that incomplete package lists are returned from a command
215216
}
216217
}
217218

219+
deploymentLocation = packageInfo.DeploymentLocation;
218220
}
219221

220222
if (!config.QuietOutput)
@@ -241,7 +243,7 @@ Package url{6}
241243
Tags: {9}
242244
Software Site: {10}
243245
Software License: {11}{12}{13}{14}{15}{16}
244-
Description: {17}{18}
246+
Description: {17}{18}{19}
245247
".FormatWith(
246248
package.Title.EscapeCurlyBraces(),
247249
package.Published.GetValueOrDefault().UtcDateTime.ToShortDateString(),
@@ -275,7 +277,8 @@ Package url{6}
275277
!string.IsNullOrWhiteSpace(package.BugTrackerUrl.ToStringSafe()) ? "{0} Issues: {1}".FormatWith(Environment.NewLine, package.BugTrackerUrl.ToStringSafe()) : string.Empty,
276278
package.Summary != null && !string.IsNullOrWhiteSpace(package.Summary.ToStringSafe()) ? "\r\n Summary: {0}".FormatWith(package.Summary.EscapeCurlyBraces().ToStringSafe()) : string.Empty,
277279
package.Description.EscapeCurlyBraces().Replace("\n ", "\n").Replace("\n", "\n "),
278-
!string.IsNullOrWhiteSpace(package.ReleaseNotes.ToStringSafe()) ? "{0} Release Notes: {1}".FormatWith(Environment.NewLine, package.ReleaseNotes.EscapeCurlyBraces().Replace("\n ", "\n").Replace("\n", "\n ")) : string.Empty
280+
!string.IsNullOrWhiteSpace(package.ReleaseNotes.ToStringSafe()) ? "{0} Release Notes: {1}".FormatWith(Environment.NewLine, package.ReleaseNotes.EscapeCurlyBraces().Replace("\n ", "\n").Replace("\n", "\n ")) : string.Empty,
281+
!string.IsNullOrWhiteSpace(deploymentLocation) ? "{0} Deployed to: '{1}'".FormatWith(Environment.NewLine, deploymentLocation) : string.Empty
279282
));
280283
}
281284
}

0 commit comments

Comments
 (0)