summaryrefslogtreecommitdiff
path: root/libmat
diff options
context:
space:
mode:
authorjvoisin2015-08-19 13:23:43 +0200
committerjvoisin2015-08-19 13:23:43 +0200
commit13c05f347fb3f4c9b1fcbbaf791f7cfae2219443 (patch)
tree28991ba44b2f3daa9697d59e23775c5918431910 /libmat
parent5d139d7e171494a026c1fef798c37a00504c95aa (diff)
Revert the ZIP_EPOCH date to 1980-01-01 00:00:00
This was a typo from my side, spotted by intrigeri.
Diffstat (limited to 'libmat')
-rw-r--r--libmat/archive.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/libmat/archive.py b/libmat/archive.py
index 7a71717..8a3fee9 100644
--- a/libmat/archive.py
+++ b/libmat/archive.py
@@ -1,7 +1,6 @@
1""" Take care of archives formats 1""" Take care of archives formats
2""" 2"""
3 3
4import datetime
5import logging 4import logging
6import os 5import os
7import shutil 6import shutil
@@ -14,7 +13,7 @@ import mat
14import parser 13import parser
15 14
16# Zip files do not support dates older than 01/01/1980 15# Zip files do not support dates older than 01/01/1980
17ZIP_EPOCH = (1980, 1, 1, 1, 0, 0) 16ZIP_EPOCH = (1980, 1, 1, 0, 0, 0)
18 17
19 18
20class GenericArchiveStripper(parser.GenericParser): 19class GenericArchiveStripper(parser.GenericParser):
@@ -38,6 +37,11 @@ class GenericArchiveStripper(parser.GenericParser):
38 mat.secure_remove(path_file) 37 mat.secure_remove(path_file)
39 shutil.rmtree(self.tempdir) 38 shutil.rmtree(self.tempdir)
40 39
40 def _should_remove(self, key):
41 """ This method is not used, but since it's defined in
42 parser.GenericParser, we must implement it."""
43 pass
44
41 def is_clean(self, list_unsupported=False): 45 def is_clean(self, list_unsupported=False):
42 """ Virtual method to check for harmul metadata 46 """ Virtual method to check for harmul metadata
43 """ 47 """