summaryrefslogtreecommitdiff
path: root/libmat/archive.py (follow)
AgeCommit message (Collapse)Author
2015-12-30Fix some pep8-related issuesjvoisin
2015-12-18Enhance CLI's error display by tweaking log leveljvoisin
2015-12-02Misc pep8 conformityjvoisin
2015-12-02Remove two useless methods from the archive stripperjvoisin
2015-12-02Remove hachoir from MAT.jvoisin
This (huge) commit removes completely hachoir from MAT. Audio files are now processed with mutagen, and images with exiftool, since the main python imaging library (PIL) isn't super-great to deal with metadata (and damaged/non-standard files). Package maintainer should change the dependencies to reflect this.
2015-11-26Remove two useless variablesjvoisin
2015-11-26Make the logging more pep-282 compliantjvoisin
See https://www.python.org/dev/peps/pep-0282/ for details, but basically this is commit leaves the string replacement to the logging function, instead of doing it in place in its parameters with the '%' operator.
2015-11-03Add more type hintjvoisin
2015-11-02Some minors pep8 modificationsjvoisin
2015-08-19Revert the ZIP_EPOCH date to 1980-01-01 00:00:00jvoisin
This was a typo from my side, spotted by intrigeri.
2015-08-18Improves the way MAT deals with ZipTimestampsjvoisin
It seems that using os.utime is TZ-dependent, so lets use a ZipInfo thing instead.
2015-08-01Merge remote-tracking branch 'intrigeri/bugfix/9827-fix-buggy-epoch-in-archive'jvoisin
2015-08-01archive: explicitly treat text we got from tarfile as encoded UTF-8 (Closes: ↵intrigeri
MAT#9831). Without this, I see test failures caused by: test_remove_bz2 (libtest.TestArchiveProcessing) Test MAT's ability to process .tar.bz2 ... /usr/lib/python2.7/tarfile.py:1993: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if self.name is not None and os.path.abspath(name) == self.name: This change seems to make sense because we're creating our tarin and tarout objects with encoding='utf-8' in the first place, so it's no big surprise that what we get from it is UTF-8 -encoded text.
2015-08-01archive: use correct epoch time.intrigeri
epoch is 1970-01-01 00:00:00 UTC, not 1970-01-01 01:00:00 UTC. This mistake was introduced in commit ef5a32c to fix the test suite. I guess that it was a hack that workaround'ed an actual bug for a specific timezone only. If that bug reappears, we'll have to fix that by making this module timezone-aware, not by setting a wrong epoch value.
2015-07-25_MASSIVE_ pep8 revampjvoisin
Thank you so much PyCharm
2014-06-08Rename the MAT folder to libmat.jvoisin
This commit fixes some issues for dump operating systems who doesn't handle capitalization.