From 1547059a21feaeb2c9aecb54a09a6f68251a3694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 29 Aug 2018 22:07:31 +0200 Subject: [PATCH] triage: handle daca@home diffs better --- tools/triage/mainwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/triage/mainwindow.cpp b/tools/triage/mainwindow.cpp index 83d8c37c1..aaf841dfc 100644 --- a/tools/triage/mainwindow.cpp +++ b/tools/triage/mainwindow.cpp @@ -50,6 +50,8 @@ void MainWindow::loadFile() if (!errorMessage.isEmpty()) errorMessage += '\n'; errorMessage += line; + } else if (!url.isEmpty() && QRegExp("(head|1.8.) .*:[0-9]+:.*\\]").exactMatch(line)) { + allErrors << (url + '\n' + line); } } if (!url.isEmpty() && !errorMessage.isEmpty()) @@ -102,8 +104,9 @@ void MainWindow::showResult(QListWidgetItem *item) if (lines.size() < 2) return; const QString url = lines[0]; - const QString msg = lines[1]; - + QString msg = lines[1]; + if (msg.startsWith("head ") || msg.startsWith("1.84 ")) + msg = msg.mid(5); const QString archiveName = url.mid(url.lastIndexOf("/") + 1); const int pos1 = msg.indexOf(":"); const int pos2 = msg.indexOf(":", pos1+1);