1
- // Copyright © 2017 - 2021 Chocolatey Software, Inc
1
+ // Copyright © 2017 - 2021 Chocolatey Software, Inc
2
2
// Copyright © 2011 - 2017 RealDimensions Software, LLC
3
3
//
4
4
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,25 +19,24 @@ namespace chocolatey.infrastructure.app.services
19
19
using System ;
20
20
using System . Collections . Concurrent ;
21
21
using System . Collections . Generic ;
22
- using System . Globalization ;
23
22
using System . IO ;
24
23
using System . Linq ;
25
24
using System . Net ;
26
- using NuGet ;
27
25
using adapters ;
26
+ using chocolatey . infrastructure . app . utility ;
28
27
using commandline ;
29
28
using configuration ;
30
29
using domain ;
31
30
using guards ;
32
31
using logging ;
33
32
using nuget ;
33
+ using NuGet ;
34
34
using platforms ;
35
35
using results ;
36
36
using tolerance ;
37
37
using DateTime = adapters . DateTime ;
38
38
using Environment = System . Environment ;
39
39
using IFileSystem = filesystem . IFileSystem ;
40
- using chocolatey . infrastructure . app . utility ;
41
40
42
41
//todo: #2575 - this monolith is too large. Refactor once test coverage is up.
43
42
@@ -934,7 +933,7 @@ public virtual ConcurrentDictionary<string, PackageResult> get_outdated(Chocolat
934
933
config . Prerelease = true ;
935
934
}
936
935
937
- SemanticVersion version = null ;
936
+ SemanticVersion version = null ;
938
937
var latestPackage = NugetList . find_package ( packageName , null , config , packageManager . SourceRepository ) ;
939
938
940
939
if ( latestPackage == null )
@@ -1119,7 +1118,7 @@ public virtual void remove_packaging_files_prior_to_upgrade(string directoryPath
1119
1118
// script could be incorrectly left in place during an upgrade operation. To guard against this,
1120
1119
// remove any Chocolatey Packaging scripts, which will then be restored by the new package, if
1121
1120
// they are still required
1122
- var filesToDelete = new List < string > { "chocolateyinstall" , "chocolateyuninstall" , "chocolateybeforemodify" } ;
1121
+ var filesToDelete = new List < string > { "chocolateyinstall" , "chocolateyuninstall" , "chocolateybeforemodify" } ;
1123
1122
var packagingScripts = _fileSystem . get_files ( directoryPath , "*.ps1" , SearchOption . AllDirectories )
1124
1123
. Where ( p => filesToDelete . Contains ( _fileSystem . get_file_name_without_extension ( p ) . to_lower ( ) ) ) ;
1125
1124
0 commit comments