diff options
| author | jvoisin | 2011-10-29 20:57:12 +0200 |
|---|---|---|
| committer | jvoisin | 2011-10-29 20:57:12 +0200 |
| commit | 4dcdf721d8ab5b7c8925ac9ad55f4dedd2c8e7df (patch) | |
| tree | 5c801aef555b3bf7567f51375a2a41e4ff5805ba /mat-gui | |
| parent | 5aeb4cf1975315c5d47dbb1a3a98bf86803b8d82 (diff) | |
Take care about the return value of external utils
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -485,10 +485,10 @@ non-anonymised) file to output archive')) | |||
| 485 | self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) | 485 | self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) |
| 486 | if self.liststore[line][3] != _('Clean (strict)'): | 486 | if self.liststore[line][3] != _('Clean (strict)'): |
| 487 | if self.force or not self.liststore[line][0].file.is_clean(): | 487 | if self.force or not self.liststore[line][0].file.is_clean(): |
| 488 | self.liststore[line][0].file.remove_all() | 488 | if self.liststore[line][0].file.remove_all(): |
| 489 | self.liststore[line][3] = _('Clean (lossless)') | ||
| 489 | if self.backup: # the backup copy state | 490 | if self.backup: # the backup copy state |
| 490 | self.liststore[line][4] = self.liststore[line][0].file.output | 491 | self.liststore[line][4] = self.liststore[line][0].file.output |
| 491 | self.liststore[line][3] = _('Clean (lossless)') | ||
| 492 | yield True | 492 | yield True |
| 493 | self.statusbar.push(0, _('Ready')) | 493 | self.statusbar.push(0, _('Ready')) |
| 494 | yield False | 494 | yield False |
| @@ -502,10 +502,10 @@ non-anonymised) file to output archive')) | |||
| 502 | self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) | 502 | self.statusbar.push(0, _('Cleaning %s...') % self.liststore[line][1]) |
| 503 | if self.liststore[line][3] != _('Clean (strict)'): | 503 | if self.liststore[line][3] != _('Clean (strict)'): |
| 504 | if self.force or not self.liststore[line][0].file.is_clean(): | 504 | if self.force or not self.liststore[line][0].file.is_clean(): |
| 505 | self.liststore[line][0].file.remove_all_ugly() | 505 | if self.liststore[line][0].file.remove_all_ugly(): |
| 506 | self.liststore[line][3] = _('Clean (strict)') | ||
| 506 | if self.backup: # the backup copy state | 507 | if self.backup: # the backup copy state |
| 507 | self.liststore[line][4] = self.liststore[line][0].file.output | 508 | self.liststore[line][4] = self.liststore[line][0].file.output |
| 508 | self.liststore[line][3] = _('Clean (strict)') | ||
| 509 | yield True | 509 | yield True |
| 510 | self.statusbar.push(0, _('Ready')) | 510 | self.statusbar.push(0, _('Ready')) |
| 511 | yield False | 511 | yield False |
