From 66ae8eb152bb3fca361fdaba5dfb72e9a2d4fd76 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 9 Feb 2022 10:52:16 -0300 Subject: [PATCH] [arch] fix: silent crash when handling and displaying transaction sub-status --- CHANGELOG.md | 5 ++++- bauh/gems/arch/output.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6b68596..20867d23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [0.9.27] ### Fixes +- Arch + - silent crash when handling and displaying transaction sub-status + - AppImage - - search: displaying duplicate installed apps for some cases + - search: displaying duplicate installed apps for some cases ## [0.9.26] 2022-01-31 diff --git a/bauh/gems/arch/output.py b/bauh/gems/arch/output.py index b6e211f7..7cd66a06 100644 --- a/bauh/gems/arch/output.py +++ b/bauh/gems/arch/output.py @@ -57,7 +57,7 @@ class TransactionStatusHandler(Thread): else: self.watcher.change_substatus('{} {}'.format(self.i18n['uninstalling'].capitalize(), output_split[1].strip())) - elif output_split[1].lower().startswith('downloading') and (not self.names or (n for n in self.names if output_split[0].startswith(n))): + elif len(output_split) >= 2 and output_split[1].lower().startswith('downloading') and (not self.names or (n for n in self.names if output_split[0].startswith(n))): if self.downloading < self.pkgs_to_sync: perc = self.gen_percentage() self.downloading += 1