diff options
| author | jvoisin | 2014-01-18 02:02:30 +0000 |
|---|---|---|
| committer | jvoisin | 2014-01-18 02:02:30 +0000 |
| commit | 72e9e85fb798d2a3c9b5a136096d9da2365194a5 (patch) | |
| tree | 11d697557297f744eaa39e15d880cc8f8b51f18a | |
| parent | 7bf1d8d1e79ed77cb9748df694700247ba52470d (diff) | |
Fix a logical mistake with mat-gui's archives handling
Mat-gui will now process archives correctly
| -rwxr-xr-x | mat-gui | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -410,13 +410,13 @@ non-anonymised) file to output archive')) | |||
| 410 | logging.info(msg) | 410 | logging.info(msg) |
| 411 | self.statusbar.push(0, msg) | 411 | self.statusbar.push(0, msg) |
| 412 | if isinstance(self.liststore[line][0].file, archive.GenericArchiveStripper): | 412 | if isinstance(self.liststore[line][0].file, archive.GenericArchiveStripper): |
| 413 | list_to_add = [] | ||
| 413 | unsupported_list = self.liststore[line][0].file.list_unsupported() | 414 | unsupported_list = self.liststore[line][0].file.list_unsupported() |
| 414 | if unsupported_list: | 415 | if type(unsupported_list) == list and unsupported_list: |
| 416 | logging.debug("Unsupported list: %s" % unsupported_list) | ||
| 415 | filename = os.path.basename(self.liststore[line][0].file.filename) | 417 | filename = os.path.basename(self.liststore[line][0].file.filename) |
| 416 | list_to_add = self.__popup_archive(filename, unsupported_list) | 418 | list_to_add = self.__popup_archive(filename, unsupported_list) |
| 417 | if self.liststore[line][0].file.remove_all(whitelist=list_to_add): | 419 | if self.liststore[line][0].file.remove_all(whitelist=list_to_add): |
| 418 | self.liststore[line][2] = _('Clean') | ||
| 419 | elif self.liststore[line][0].file.remove_all(): | ||
| 420 | self.liststore[line][2] = _('Clean') | 420 | self.liststore[line][2] = _('Clean') |
| 421 | yield True | 421 | yield True |
| 422 | self.statusbar.push(0, _('Ready')) | 422 | self.statusbar.push(0, _('Ready')) |
