From 4dcdf721d8ab5b7c8925ac9ad55f4dedd2c8e7df Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 29 Oct 2011 20:57:12 +0200 Subject: Take care about the return value of external utils --- mat-gui | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mat-gui') diff --git a/mat-gui b/mat-gui index 0b39d8c..9a9f95b 100755 --- a/mat-gui +++ b/mat-gui @@ -485,10 +485,10 @@ non-anonymised) file to output archive')) self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) if self.liststore[line][3] != _('Clean (strict)'): if self.force or not self.liststore[line][0].file.is_clean(): - self.liststore[line][0].file.remove_all() + if self.liststore[line][0].file.remove_all(): + self.liststore[line][3] = _('Clean (lossless)') if self.backup: # the backup copy state self.liststore[line][4] = self.liststore[line][0].file.output - self.liststore[line][3] = _('Clean (lossless)') yield True self.statusbar.push(0, _('Ready')) yield False @@ -502,10 +502,10 @@ non-anonymised) file to output archive')) self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) if self.liststore[line][3] != _('Clean (strict)'): if self.force or not self.liststore[line][0].file.is_clean(): - self.liststore[line][0].file.remove_all_ugly() + if self.liststore[line][0].file.remove_all_ugly(): + self.liststore[line][3] = _('Clean (strict)') if self.backup: # the backup copy state self.liststore[line][4] = self.liststore[line][0].file.output - self.liststore[line][3] = _('Clean (strict)') yield True self.statusbar.push(0, _('Ready')) yield False -- cgit v1.3