summaryrefslogtreecommitdiff
path: root/libmat
diff options
context:
space:
mode:
Diffstat (limited to 'libmat')
-rw-r--r--libmat/archive.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmat/archive.py b/libmat/archive.py
index 4c62dc8..c96c74b 100644
--- a/libmat/archive.py
+++ b/libmat/archive.py
@@ -237,7 +237,9 @@ class TarStripper(GenericArchiveStripper):
237 else: # Don't add the file to the archive 237 else: # Don't add the file to the archive
238 logging.debug('%s will not be added' % item.name) 238 logging.debug('%s will not be added' % item.name)
239 continue 239 continue
240 tarout.add(path, item.name, filter=self._remove) 240 tarout.add(unicode(path.decode('utf-8')),
241 unicode(item.name.decode('utf-8')),
242 filter=self._remove)
241 tarin.close() 243 tarin.close()
242 tarout.close() 244 tarout.close()
243 self.do_backup() 245 self.do_backup()