Skip to content

Commit 9c86306

Browse files
committed
Small tweaks
1 parent c000457 commit 9c86306

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ public IEnumerable<ChocolateyConfiguration> GetPackagesFromConfigFile(string pac
982982
packageConfig.ApplyPackageParametersToDependencies = true;
983983
}
984984

985-
if (!string.IsNullOrWhiteSpace(pkgSettings.SourceType) && HasSourceType(pkgSettings.SourceType, alternativeSourceRunners))
985+
if ((!string.IsNullOrWhiteSpace(pkgSettings.SourceType) && HasSourceType(pkgSettings.SourceType, alternativeSourceRunners)) || pkgSettings.SourceType == "programs" || pkgSettings.SourceType == "dotnet")
986986
{
987987
packageConfig.SourceType = pkgSettings.SourceType;
988988
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,11 @@ Package url{6}
298298
{
299299
this.Log().Info(logger, () => "{0}|nuget".FormatWith(package.Identity.Id));
300300
}
301-
else if(!config.ListCommand.IdOnly && !config.ListCommand.IncludeAlternativeSources)
301+
else if(!config.ListCommand.IdOnly && !config.ListCommand.IncludeAlternativeSources && !config.ListCommand.IncludeRegistryPrograms)
302302
{
303303
this.Log().Info(logger, () => "{0}|{1}".FormatWith(package.Identity.Id, package.Identity.Version.ToFullStringChecked()));
304304
}
305-
else if(config.ListCommand.IncludeAlternativeSources)
305+
else if(config.ListCommand.IncludeAlternativeSources || config.ListCommand.IncludeRegistryPrograms)
306306
{
307307
this.Log().Info(logger, () => "{0}|{1}|nuget".FormatWith(package.Identity.Id, package.Identity.Version.ToFullStringChecked()));
308308
}

0 commit comments

Comments
 (0)