diff options
| author | jvoisin | 2014-01-06 11:24:07 +0000 |
|---|---|---|
| committer | jvoisin | 2014-01-06 11:24:07 +0000 |
| commit | 5d8f4b5c82f13e533248d88faefdd1cadebb1eb6 (patch) | |
| tree | bf6a3d1e0221d4abdef1d4d9eac23e879ba728f8 /MAT | |
| parent | 9708bafa709cf8c04579315baafd31f1a1365637 (diff) | |
Add a test got get_unsupported_archive
Diffstat (limited to 'MAT')
| -rw-r--r-- | MAT/archive.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MAT/archive.py b/MAT/archive.py index 212e638..5b8d9a8 100644 --- a/MAT/archive.py +++ b/MAT/archive.py | |||
| @@ -224,7 +224,8 @@ class TarStripper(GenericArchiveStripper): | |||
| 224 | basename, ext = os.path.splitext(complete_name) | 224 | basename, ext = os.path.splitext(complete_name) |
| 225 | if ext not in parser.NOMETA: | 225 | if ext not in parser.NOMETA: |
| 226 | if list_unsupported: | 226 | if list_unsupported: |
| 227 | ret_list.append(complete_name) | 227 | tmp_len = len(self.tempdir) + 1 # trim the tempfile path |
| 228 | ret_list.append(complete_name[tmp_len:]) | ||
| 228 | else: | 229 | else: |
| 229 | return False | 230 | return False |
| 230 | tarin.close() | 231 | tarin.close() |
