Skip to content

Commit eaf7a12

Browse files
committed
Multiple output lists from the upgrade action will now be parsed
1 parent b88774c commit eaf7a12

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎src/WGet.NET/HelperClasses/ArrayManager.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static T[] RemoveRange<T>(T[] inputArray, int index, int count)
8080
/// A <see cref="System.String"/> representing the value to check for.
8181
/// </param>
8282
/// <returns>
83-
/// A <see cref="System.String"/> representing the index of the entry (-1 if the entry is not found).
83+
/// A <see cref="System.Int32"/> representing the index of the entry (-1 if the entry is not found).
8484
/// </returns>
8585
public static int GetEntryContains(string[] inputArray, string value)
8686
{

‎src/WGet.NET/HelperClasses/ProcessOutputReader.cs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ private static List<WinGetPackage> CreatePackageListFromOutput(string[] output,
8585
});
8686
}
8787

88+
// Check for secondery list in output.
89+
if (ArrayManager.GetEntryContains(output, "------") != -1)
90+
{
91+
List<WinGetPackage> seconderyList = ToPackageList(output);
92+
resultList.AddRange(seconderyList);
93+
}
94+
8895
return resultList;
8996
}
9097

‎src/WGet.NET/XmlDocumentation/WGet.NET.xml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)