Skip to content

Commit d04df4b

Browse files
authored
Merge pull request #3632 from AdmiringWorm/merge-release-1.4.3-changes
(maint) Back-merge changes from support branch to develop
2 parents 8845afd + e21af35 commit d04df4b

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

docs/legal/CREDITS.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- [Contributors](#contributors)
77
- [Third Party Licenses - Development](#third-party-licenses---development)
88
- [Third Party Licenses - Runtime](#third-party-licenses---runtime)
9-
- [7-Zip @ 24.08](#7-zip--2408)
9+
- [7-Zip @ 24.09](#7-zip--2409)
1010
- [AlphaFS @ 2.1.3](#alphafs--213)
1111
- [Checksum @ 0.3.1](#checksum--031)
1212
- [log4net @ 2.0.12](#log4net--2012)
@@ -73,7 +73,7 @@ We would like to credit other super sweet tools/frameworks that aid in the devel
7373
Chocolatey CLI (choco) uses a number of 3rd-party components.
7474
Their details are below.
7575

76-
### 7-Zip @ 24.08
76+
### 7-Zip @ 24.09
7777

7878
Chocolatey uses [7-Zip](http://www.7-zip.org/) for uncompressing archives.
7979
[License terms](http://www.7-zip.org/license.txt):

src/chocolatey.console/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private static void Main(string[] args)
150150
{
151151
Log4NetAppenderConfiguration.EnableTraceLoggingIf(config.Trace, traceAppenderName);
152152
}
153-
else
153+
else if (config.Trace)
154154
{
155155
var logger = ChocolateyLoggers.Normal;
156156

src/chocolatey.resources/tools/7z.dll

18.5 KB
Binary file not shown.

src/chocolatey.resources/tools/7z.exe

2 KB
Binary file not shown.

src/chocolatey.resources/tools/7zip.license.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@
8787

8888

8989
--
90-
Igor Pavlov
90+
Igor Pavlov

src/chocolatey/GetChocolatey.cs

+9-6
Original file line numberDiff line numberDiff line change
@@ -449,14 +449,17 @@ private T EnsureOriginalConfiguration<T>(IList<string> args, Func<ChocolateyConf
449449
Log4NetAppenderConfiguration.EnableDebugLoggingIf(configuration.Debug, verboseAppenderName, traceAppenderName);
450450
Log4NetAppenderConfiguration.EnableVerboseLoggingIf(configuration.Verbose, configuration.Debug, verboseAppenderName);
451451

452-
var logger = ChocolateyLoggers.Normal;
453-
454-
if (!configuration.RegularOutput)
452+
if (!configuration.Information.IsProcessElevated && configuration.Trace)
455453
{
456-
logger = ChocolateyLoggers.LogFileOnly;
457-
}
454+
var logger = ChocolateyLoggers.Normal;
455+
456+
if (!configuration.RegularOutput)
457+
{
458+
logger = ChocolateyLoggers.LogFileOnly;
459+
}
458460

459-
"chocolatey".Log().Warn(logger, "Usage of the --trace option is only allowed when running from an elevated session.");
461+
"chocolatey".Log().Warn(logger, "Usage of the --trace option is only allowed when running from an elevated session.");
462+
}
460463
}
461464
finally
462465
{

tests/pester-tests/BundledApplications.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Describe 'Ensuring correct version of <Name> is installed' -Tag BundledApplications -ForEach @(
44
@{ Name = 'shimgen' ; Version = '2.0.0' ; IsSigned = $true }
55
@{ Name = 'checksum' ; Version = '0.3.1' ; IsSigned = $true }
6-
@{ Name = '7z' ; Version = '24.08' ; IsSigned = $false }
6+
@{ Name = '7z' ; Version = '24.09' ; IsSigned = $false }
77
) {
88
Context '<Name> is correctly installed' {
99
BeforeAll {

0 commit comments

Comments
 (0)