Skip to content

Commit 8b68c11

Browse files
committed
Merge branch 'main.ignorable-updating-messages'
2 parents ad2711e + 192138c commit 8b68c11

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Cork/Logic/Updating and Upgrading/Update Packages.swift

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,20 @@ func updatePackages(updateProgressTracker: UpdateProgressTracker, detailStage: U
6565
updateProgressTracker.realTimeOutput.append(RealTimeTerminalLine(line: errorLine))
6666
}
6767

68-
if errorLine.contains("tap") || errorLine.contains("No checksum defined for")
68+
let isIgnorable: Bool = errorLine.contains("tap")
69+
|| errorLine.contains("No checksum defined for")
70+
|| errorLine.contains("Bottle")
71+
|| errorLine.contains("Fetching")
72+
|| errorLine.contains("Downloading")
73+
|| errorLine.contains("Already downloaded")
74+
|| errorLine.contains("Pouring")
75+
|| errorLine.contains("Installing")
76+
|| errorLine.contains("🍺")
77+
|| errorLine.contains("")
78+
|| errorLine.contains("==>")
79+
|| errorLine.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
80+
81+
if isIgnorable
6982
{
7083
updateProgressTracker.updateProgress = updateProgressTracker.updateProgress + 0.1
7184

0 commit comments

Comments
 (0)