@@ -499,7 +499,7 @@ public virtual ConcurrentDictionary<string, PackageResult> Install(ChocolateyCon
499
499
if ( packageNames . Count == 1 )
500
500
{
501
501
var packageName = packageNames . DefaultIfEmpty ( string . Empty ) . FirstOrDefault ( ) ;
502
- if ( packageName . EndsWith ( NuGetConstants . PackageExtension ) || packageName . EndsWith ( PackagingConstants . ManifestExtension ) )
502
+ if ( packageName . EndsWith ( NuGetConstants . PackageExtension , StringComparison . OrdinalIgnoreCase ) || packageName . EndsWith ( PackagingConstants . ManifestExtension , StringComparison . OrdinalIgnoreCase ) )
503
503
{
504
504
this . Log ( ) . Warn ( ChocolateyLoggers . Important , "DEPRECATION WARNING" ) ;
505
505
this . Log ( ) . Warn ( InstallWithFilePathDeprecationMessage ) ;
@@ -509,7 +509,7 @@ public virtual ConcurrentDictionary<string, PackageResult> Install(ChocolateyCon
509
509
510
510
config . Sources = _fileSystem . GetDirectoryName ( _fileSystem . GetFullPath ( packageName ) ) ;
511
511
512
- if ( packageName . EndsWith ( PackagingConstants . ManifestExtension ) )
512
+ if ( packageName . EndsWith ( PackagingConstants . ManifestExtension , StringComparison . OrdinalIgnoreCase ) )
513
513
{
514
514
packageNames . Add ( _fileSystem . GetFilenameWithoutExtension ( packageName ) ) ;
515
515
@@ -553,7 +553,7 @@ public virtual ConcurrentDictionary<string, PackageResult> Install(ChocolateyCon
553
553
554
554
var installedPackage = allLocalPackages . FirstOrDefault ( p => p . Name . IsEqualTo ( packageName ) ) ;
555
555
556
- if ( Platform . GetPlatform ( ) != PlatformType . Windows && ! packageName . EndsWith ( ".template" ) )
556
+ if ( Platform . GetPlatform ( ) != PlatformType . Windows && ! packageName . EndsWith ( ".template" , StringComparison . OrdinalIgnoreCase ) )
557
557
{
558
558
string logMessage = "{0} is not a supported package on non-Windows systems.{1}Only template packages are currently supported." . FormatWith ( packageName , Environment . NewLine ) ;
559
559
this . Log ( ) . Warn ( ChocolateyLoggers . Important , logMessage ) ;
0 commit comments