Skip to content

Commit

Permalink
Fix chocolatey operations hanging (fix #2716)
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Feb 10, 2025
1 parent bc4cec8 commit 19f7130
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/UniGetUI.PackageEngine.Operations/ProcessOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,22 @@ protected override async Task<OperationVeredict> PerformOperation()
{
if (lastStringBeforeLF is not null)
{
if (lastStringBeforeLF.Contains("For the question below") || lastStringBeforeLF.Contains("Would remove:"))
{
await process.StandardInput.WriteLineAsync("");
}
Line(lastStringBeforeLF, LineType.Information);
lastStringBeforeLF = null;
}
continue;
}
Line(currentLine.ToString(), LineType.Information);

string line = currentLine.ToString();
if (line.Contains("For the question below") || line.Contains("Would remove:"))
{
await process.StandardInput.WriteLineAsync("");
}
Line(line, LineType.Information);
currentLine.Clear();
}
else if (c == '\r')
Expand Down

0 comments on commit 19f7130

Please sign in to comment.