Skip to content

Commit 05c966b

Browse files
committed
MORE LOGS
1 parent 39062a9 commit 05c966b

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

src/code/GetHelper.cs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.PowerShell.PSResourceGet.UtilClasses;
@@ -95,10 +95,39 @@ public IEnumerable<PSResourceInfo> GetPackagesFromPath(
9595
bool selectPrereleaseOnly)
9696
{
9797
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath()");
98+
if (name.Length < 1 )
99+
{
100+
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: length of names less than 1");
101+
}
102+
if (pathsToSearch.Count < 1 )
103+
{
104+
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: length of pathsToSearch less than 1");
105+
}
106+
98107
List<string> pkgPathsByName = FilterPkgPathsByName(name, pathsToSearch);
99108

109+
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath():: entering filterpkgpathsbyversion");
110+
if (versionRange == null )
111+
{
112+
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: versionRange is null");
113+
}
114+
if (pkgPathsByName.Count < 1 )
115+
{
116+
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: length of pkgPathsByName less than 1");
117+
}
118+
119+
if (_scriptDictionary == null)
120+
{
121+
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: _scriptDictionary is null");
122+
}
123+
100124
foreach (string pkgPath in FilterPkgPathsByVersion(versionRange, pkgPathsByName, selectPrereleaseOnly))
101125
{
126+
if (pkgPath == null)
127+
{
128+
_cmdletPassedIn.WriteDebug("In GetHelper::GetPackagesFromPath() :: pkgPath is null");
129+
}
130+
102131
PSResourceInfo pkg = OutputPackageObject(pkgPath, _scriptDictionary);
103132
if (pkg != null)
104133
{

0 commit comments

Comments
 (0)