@@ -737,8 +737,6 @@ private Hashtable BeginPackageInstall(
737737 FindResults responses = null ;
738738 errRecord = null ;
739739
740- //_cmdletPassedIn.WriteWarning($"~~~~~~~~~~~~~~~~~~ pkgNameToInstall is: '{pkgNameToInstall}'.");
741-
742740 switch ( searchVersionType )
743741 {
744742 case VersionType . VersionRange :
@@ -816,9 +814,6 @@ private Hashtable BeginPackageInstall(
816814 return packagesHash ;
817815 }
818816
819- // THIS SHOULD BE THE CORRECT PKG NAME
820- // _cmdletPassedIn.WriteWarning($"~~~~~~~~~~~~~~~~~~ pkgToInstall.Name is: '{pkgToInstall.Name}'.");
821-
822817 pkgToInstall . RepositorySourceLocation = repository . Uri . ToString ( ) ;
823818 pkgToInstall . AdditionalMetadata . TryGetValue ( "NormalizedVersion" , out string pkgVersion ) ;
824819 if ( pkgVersion == null ) {
@@ -976,14 +971,6 @@ private bool TryInstallToTempPath(
976971 updatedPackagesHash = packagesHash ;
977972 try
978973 {
979- if ( responseStream == null )
980- {
981- _cmdletPassedIn . WriteVerbose ( $ "response stream is null") ;
982- }
983- else {
984- _cmdletPassedIn . WriteVerbose ( $ "response stream is NOT null") ;
985- }
986-
987974 var pathToFile = Path . Combine ( tempInstallPath , $ "{ pkgName } .{ normalizedPkgVersion } .zip") ;
988975 _cmdletPassedIn . WriteVerbose ( $ "pathToFile IS: { pathToFile } .") ;
989976
@@ -1003,41 +990,11 @@ private bool TryInstallToTempPath(
1003990 return false ;
1004991 }
1005992
1006-
1007- _cmdletPassedIn . WriteVerbose ( $ "tempDirNameVersionIS: { tempDirNameVersion } .") ;
1008-
1009- // Check if the directory exists
1010- if ( Directory . Exists ( tempDirNameVersion ) )
1011- {
1012- Console . WriteLine ( $ "Contents of { tempDirNameVersion } :") ;
1013-
1014- // Display all files in the directory
1015- string [ ] files = Directory . GetFiles ( tempDirNameVersion , "*.*" , SearchOption . AllDirectories ) ;
1016- foreach ( string file in files )
1017- {
1018- Console . WriteLine ( $ "File: { file } ") ;
1019- }
1020-
1021- // Display all subdirectories in the directory
1022- string [ ] directories = Directory . GetDirectories ( tempDirNameVersion , "*" , SearchOption . AllDirectories ) ;
1023- foreach ( string directory in directories )
1024- {
1025- Console . WriteLine ( $ "Directory: { directory } ") ;
1026- }
1027- }
1028- else
1029- {
1030- Console . WriteLine ( $ "The directory { tempDirNameVersion } does not exist.") ;
1031- }
1032-
1033-
1034-
1035993 File . Delete ( pathToFile ) ;
1036994
1037995 var moduleManifest = Path . Combine ( tempDirNameVersion , pkgName + PSDataFileExt ) ;
1038996 var scriptPath = Path . Combine ( tempDirNameVersion , pkgName + PSScriptFileExt ) ;
1039997
1040- _cmdletPassedIn . WriteVerbose ( $ "MODULE MANIFEST PATH IS: { moduleManifest } .") ;
1041998 bool isModule = File . Exists ( moduleManifest ) ;
1042999 bool isScript = File . Exists ( scriptPath ) ;
10431000
0 commit comments