From 72e9e85fb798d2a3c9b5a136096d9da2365194a5 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 18 Jan 2014 02:02:30 +0000 Subject: Fix a logical mistake with mat-gui's archives handling Mat-gui will now process archives correctly --- mat-gui | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mat-gui b/mat-gui index 03afedf..24cf766 100755 --- a/mat-gui +++ b/mat-gui @@ -410,13 +410,13 @@ non-anonymised) file to output archive')) logging.info(msg) self.statusbar.push(0, msg) if isinstance(self.liststore[line][0].file, archive.GenericArchiveStripper): + list_to_add = [] unsupported_list = self.liststore[line][0].file.list_unsupported() - if unsupported_list: + if type(unsupported_list) == list and unsupported_list: + logging.debug("Unsupported list: %s" % unsupported_list) filename = os.path.basename(self.liststore[line][0].file.filename) list_to_add = self.__popup_archive(filename, unsupported_list) - if self.liststore[line][0].file.remove_all(whitelist=list_to_add): - self.liststore[line][2] = _('Clean') - elif self.liststore[line][0].file.remove_all(): + if self.liststore[line][0].file.remove_all(whitelist=list_to_add): self.liststore[line][2] = _('Clean') yield True self.statusbar.push(0, _('Ready')) -- cgit v1.3