diff options
Diffstat (limited to 'sb_builder')
| -rw-r--r-- | sb_builder/__init__.py | 2 | ||||
| -rw-r--r-- | sb_builder/results.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sb_builder/__init__.py b/sb_builder/__init__.py index 539b874..e0f577e 100644 --- a/sb_builder/__init__.py +++ b/sb_builder/__init__.py @@ -16,4 +16,4 @@ """sb-builder: Qt6 GUI driving the SlackBuild tooling on a build VM.""" -VERSION = "0.4.0" # must match remote/sbb-remote VERSION +VERSION = "0.4.1" # must match remote/sbb-remote VERSION diff --git a/sb_builder/results.py b/sb_builder/results.py index 30a3adc..1fc6b9a 100644 --- a/sb_builder/results.py +++ b/sb_builder/results.py @@ -44,16 +44,17 @@ class LogViewer(QDialog): def __init__(self, path, log, parent=None): super().__init__(parent) - self.setWindowTitle(f"{path}: build log") + name = log.get("name", "build.log") + self.setWindowTitle(f"{path}: {name}") self.resize(1000, 700) self.text = QPlainTextEdit(readOnly=True) self.text.setFont(QFontDatabase.systemFont(QFontDatabase.SystemFont.FixedFont)) parts = [] # resource.log first: the end of build.log, where it failed, stays last if log["resource"]: parts.append("──── resource.log ────\n" + ANSI.sub("", log["resource"]) + "\n") - parts.append("──── build.log ────\n") + parts.append(f"──── {name} ────\n") if log["truncated"]: - parts.append("[... start of build.log truncated, showing its end ...]\n") + parts.append(f"[... start of {name} truncated, showing its end ...]\n") parts.append(ANSI.sub("", log["build"])) self.text.setPlainText("".join(parts)) self.text.moveCursor(QTextCursor.MoveOperation.End) |
