Commit af365295 authored by jvoisin's avatar jvoisin
Browse files

Rename the MAT folder to libmat.

This commit fixes some issues for dump operating
systems who doesn't handle capitalization.
parent ef5a32cf
......@@ -2,7 +2,7 @@ include README README.security LICENSE mat mat-gui
include TODO mat.desktop
include mat.1 mat-gui.1
recursive-include data *
recursive-include MAT *.py
recursive-include libmat *.py
recursive-include test *.py clean.* dirty.*
recursive-include po *
recursive-include nautilus *.py
......@@ -9,10 +9,10 @@ update changelog:
git log -> CHANGELOG
update version number (Don't be affraid to use -rc or -beta)
MAT/mat.py -> __version__ = $VERSION
libmat/mat.py -> __version__ = $VERSION
commit release changes
git commit CHANGELOG MAT/mat.py
git commit CHANGELOG libmat/mat.py
create a tag
git tag -s $VERSION
......
......@@ -12,7 +12,7 @@ import xml.sax
import hachoir_core.cmd_line
import hachoir_parser
import MAT.exceptions
import libmat.exceptions
__version__ = '0.5.2'
__author__ = 'jvoisin'
......@@ -117,7 +117,7 @@ def secure_remove(filename):
os.chmod(filename, 220)
except OSError:
logging.error('Unable to add write rights to %s' % filename)
raise MAT.exceptions.UnableToWriteFile
raise libmat.exceptions.UnableToWriteFile
try:
if not subprocess.call(['shred', '--remove', filename]):
......@@ -131,7 +131,7 @@ def secure_remove(filename):
os.remove(filename)
except OSError:
logging.error('Unable to remove %s' % filename)
raise MAT.exceptions.UnableToRemoveFile
raise libmat.exceptions.UnableToRemoveFile
return True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment