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-cli | |
| parent | 5aeb4cf1975315c5d47dbb1a3a98bf86803b8d82 (diff) | |
Take care about the return value of external utils
Diffstat (limited to 'mat-cli')
| -rwxr-xr-x | mat-cli | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -93,9 +93,10 @@ def clean_meta(class_file, filename, force): | |||
| 93 | if force is False and class_file.is_clean(): | 93 | if force is False and class_file.is_clean(): |
| 94 | print('%s is already clean' % filename) | 94 | print('%s is already clean' % filename) |
| 95 | else: | 95 | else: |
| 96 | class_file.remove_all() | 96 | if class_file.remove_all(): |
| 97 | print('%s cleaned !' % filename) | 97 | print('%s cleaned !' % filename) |
| 98 | 98 | else: | |
| 99 | print('Unable to clean %s', filename) | ||
| 99 | 100 | ||
| 100 | def clean_meta_ugly(class_file, filename, force): | 101 | def clean_meta_ugly(class_file, filename, force): |
| 101 | ''' | 102 | ''' |
