mat issueshttps://0xacab.org/mat/mat/-/issues2017-04-06T03:14:25Zhttps://0xacab.org/mat/mat/-/issues/11526IOError when using "--backup"2017-04-06T03:14:25ZgregorIOError when using "--backup"First thank you for the work on "mat" :-)
The "--backup" option throws an IOError
`python2.7 /home/gregor/Downloads/0000/mat.git/mat --backup Photo-2017-03-18-11-21-21_0210.JPG`
```
[*] Cleaning Photo-2017-03-18-11-21-21_0210.JPG
Trac...First thank you for the work on "mat" :-)
The "--backup" option throws an IOError
`python2.7 /home/gregor/Downloads/0000/mat.git/mat --backup Photo-2017-03-18-11-21-21_0210.JPG`
```
[*] Cleaning Photo-2017-03-18-11-21-21_0210.JPG
Traceback (most recent call last):
File "/home/gregor/Downloads/0000/mat.git/mat", line 160, in <module>
main()
File "/home/gregor/Downloads/0000/mat.git/mat", line 152, in main
ret += func(class_file, filename, args.add2archive)
File "/home/gregor/Downloads/0000/mat.git/mat", line 96, in clean_meta
if class_file.remove_all():
File "/home/gregor/Downloads/0000/mat.git/libmat/exiftool.py", line 29, in remove_all
self.create_backup_copy()
File "/home/gregor/Downloads/0000/mat.git/libmat/parser.py", line 54, in create_backup_copy
shutil.copy2(self.filename, os.path.join(self.filename, '.bak'))
File "/usr/lib/python2.7/shutil.py", line 130, in copy2
copyfile(src, dst)
File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 20] Not a directory: 'Photo-2017-03-18-11-21-21_0210.JPG/.bak'
```
Used Version: cloned from git seconds before, commit feea5a7962c86625d1cb198dcd2de0bc939728a9
Environment:
* Arch Linux (4.10.3-1-ARCH)
* Python 2.7.13https://0xacab.org/mat/mat/-/issues/11524Changing MAT's logo2018-08-01T00:33:42ZjvoisinChanging MAT's logoI was told that the current logo, while being fun, could be improved.
Someone called Marie-Rose stepped in, and drafted a new one: [MAT_logo.zip](/uploads/28f6c8ab926fd097ad21458b53f77021/MAT_logo.zip)
Comments and thoughts are welcome.I was told that the current logo, while being fun, could be improved.
Someone called Marie-Rose stepped in, and drafted a new one: [MAT_logo.zip](/uploads/28f6c8ab926fd097ad21458b53f77021/MAT_logo.zip)
Comments and thoughts are welcome.https://0xacab.org/mat/mat/-/issues/4423Create a file.ext.bak instead of file.cleaned.ext2017-04-06T03:14:25ZjvoisinCreate a file.ext.bak instead of file.cleaned.extThe MAT produces a new file named file.cleaned.ext when the "backup" option is set to true. Naming the produced file "file.ext" and renaming the original one "file.cleaned.ext" seems to be more intuitive.
*(from redmine: created on 2013...The MAT produces a new file named file.cleaned.ext when the "backup" option is set to true. Naming the produced file "file.ext" and renaming the original one "file.cleaned.ext" seems to be more intuitive.
*(from redmine: created on 2013-07-14, closed on 2013-10-04)*https://0xacab.org/mat/mat/-/issues/4425Support Microsoft Office < 2007 filetypes2017-04-06T03:14:25ZjvoisinSupport Microsoft Office < 2007 filetypesSupporting those inaneness will not be possible without using a library. Since no one want to do this, this bug will likely never be closed.
*(from redmine: created on 2013-07-14, closed on 2015-11-02)*Supporting those inaneness will not be possible without using a library. Since no one want to do this, this bug will likely never be closed.
*(from redmine: created on 2013-07-14, closed on 2015-11-02)*https://0xacab.org/mat/mat/-/issues/4426Add support for (g)zip files2017-04-06T03:14:25ZjvoisinAdd support for (g)zip filesPython doesn't seems to like my zipfiles.
This requires more informations/logs.
*(from redmine: created on 2013-07-14, closed on 2014-01-21)*Python doesn't seems to like my zipfiles.
This requires more informations/logs.
*(from redmine: created on 2013-07-14, closed on 2014-01-21)*https://0xacab.org/mat/mat/-/issues/4427Handle mtime/atime for files inside archives2017-04-06T03:14:25ZjvoisinHandle mtime/atime for files inside archivesThe Python module zipfile does likely not allow me to play with ZipInfo properties, but I may be wrong.
*(from redmine: created on 2013-07-14, closed on 2014-01-21)*The Python module zipfile does likely not allow me to play with ZipInfo properties, but I may be wrong.
*(from redmine: created on 2013-07-14, closed on 2014-01-21)*https://0xacab.org/mat/mat/-/issues/6416Does not inform the user when files where lost while cleaning an archive2017-04-06T03:14:26ZintrigeriDoes not inform the user when files where lost while cleaning an archiveI've just run MAT on a tarball (@.tar.bz2@) that contained a few dozens @.pl@ and @.pm@ Perl program files, plus a PDF, 2 JPG's and a @.txt@.
MAT happily tells me "whatever.tar.bz2 cleaned !" (the space before the exclamation mark is ...I've just run MAT on a tarball (@.tar.bz2@) that contained a few dozens @.pl@ and @.pm@ Perl program files, plus a PDF, 2 JPG's and a @.txt@.
MAT happily tells me "whatever.tar.bz2 cleaned !" (the space before the exclamation mark is a typo, btw).
I would appreciate it if it quickly mentioned, in passing, that most of the files were removed from the tarball, that now only contains the non-Perl files.
*(from redmine: created on 2013-11-11, closed on 2014-04-03, relates #7012)*https://0xacab.org/mat/mat/-/issues/6423Same gettext string used in places where it should be translated differently2017-04-06T03:14:26ZintrigeriSame gettext string used in places where it should be translated differently_Clean_ is used in places where it's a imperative verb (to be translated "Nettoyer" in French), and in places where it's a status (to be translated "Nettoyé" in French).
I'm unsure how this should be dealt with, but this must be fixed..._Clean_ is used in places where it's a imperative verb (to be translated "Nettoyer" in French), and in places where it's a status (to be translated "Nettoyé" in French).
I'm unsure how this should be dealt with, but this must be fixed in the code, not by translators.
*(from redmine: created on 2013-11-14, closed on 2014-01-29)*https://0xacab.org/mat/mat/-/issues/6604MAT does not handle archives with non-readable files inside.2017-04-06T03:14:26ZjvoisinMAT does not handle archives with non-readable files inside.Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py", line 633, in <lambda>
return (lambda data: callback(*data), user_data)
File "./mat-gui", line 413, in __mat_clean
if self.li...Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py", line 633, in <lambda>
return (lambda data: callback(*data), user_data)
File "./mat-gui", line 413, in __mat_clean
if self.liststore[line][0].file.remove_all(whitelist=list_to_add):
File "/home/intrigeri/cyber/mat/git/MAT/archive.py", line 197, in remove_all
tarin.extract(item, self.tempdir)
File "/usr/lib/python2.7/tarfile.py", line 2084, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/usr/lib/python2.7/tarfile.py", line 2160, in _extract_member
self.makefile(tarinfo, targetpath)
File "/usr/lib/python2.7/tarfile.py", line 2200, in makefile
with bltn_open(targetpath, "wb") as target:
IOError: [Errno 13] Permission denied: '/tmp/tmp_U07jm/path/to/blib/lib/Blog.pm'
*(from redmine: created on 2014-01-17, closed on 2014-01-21, relates #6620)*https://0xacab.org/mat/mat/-/issues/6605MAT's GUI is unable to sort by states2017-04-06T03:14:26ZjvoisinMAT's GUI is unable to sort by statesWithin MAT's gui, it's currently not possible to sort on the "State" column.
*(from redmine: created on 2014-01-18, closed on 2014-01-21)*Within MAT's gui, it's currently not possible to sort on the "State" column.
*(from redmine: created on 2014-01-18, closed on 2014-01-21)*https://0xacab.org/mat/mat/-/issues/6609MAT's GUI traceback when cleaning files2017-04-06T03:14:26ZGhost UserMAT's GUI traceback when cleaning filesWith the *mat-gui*, when click on [Scour] after adding a file to clean, there's the following traceback :
<pre>
Traceback (most recent call last):
File "./mat-gui", line 419, in __mat_clean
if self.liststore[line][0].file.rem...With the *mat-gui*, when click on [Scour] after adding a file to clean, there's the following traceback :
<pre>
Traceback (most recent call last):
File "./mat-gui", line 419, in __mat_clean
if self.liststore[line][0].file.remove_all(whitelist=list_to_add):
UnboundLocalError: local variable 'list_to_add' referenced before assignment
</pre>
Nevertheless, the file seems to be cleaned after that.
*(from redmine: created on 2014-01-19, closed on 2014-01-29)*https://0xacab.org/mat/mat/-/issues/6613Released tarball contains spurious .pyc files2017-04-06T03:14:26ZintrigeriReleased tarball contains spurious .pyc filesI've no idea what step of the release process is buggy, but no .pyc should be part of the released tarballs. The 0.5 tarball is buggy on this respect.
*(from redmine: created on 2014-01-20, closed on 2014-01-21)*I've no idea what step of the release process is buggy, but no .pyc should be part of the released tarballs. The 0.5 tarball is buggy on this respect.
*(from redmine: created on 2014-01-20, closed on 2014-01-21)*https://0xacab.org/mat/mat/-/issues/6614Copyright years were not updated for 20142017-04-06T03:14:26ZintrigeriCopyright years were not updated for 2014The @README@ file reads @Copyright 2011-2013 Julien Voisin <julien.voisin@dustri.org>@. This should presumably be bumped to 2011-2014.
*(from redmine: created on 2014-01-21, closed on 2014-01-29)*The @README@ file reads @Copyright 2011-2013 Julien Voisin <julien.voisin@dustri.org>@. This should presumably be bumped to 2011-2014.
*(from redmine: created on 2014-01-21, closed on 2014-01-29)*https://0xacab.org/mat/mat/-/issues/6615setup.py tries to install non-existing TODO file2017-04-06T03:14:26Zintrigerisetup.py tries to install non-existing TODO filePerhaps it would be worth adding "test @setup.py install@" to the release process doc, to avoid releasing broken, untested stuff.
*(from redmine: created on 2014-01-21, closed on 2014-01-29)*Perhaps it would be worth adding "test @setup.py install@" to the release process doc, to avoid releasing broken, untested stuff.
*(from redmine: created on 2014-01-21, closed on 2014-01-29)*https://0xacab.org/mat/mat/-/issues/6616Test suite relies on non-existing unwritable_content.zip file2017-04-06T03:14:26ZintrigeriTest suite relies on non-existing unwritable_content.zip fileERROR: test_archive_unwritable_content (libtest.TestArchiveProcessing)
<pre>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/intrigeri/cyber/mat/git/test/libtest...ERROR: test_archive_unwritable_content (libtest.TestArchiveProcessing)
<pre>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/intrigeri/cyber/mat/git/test/libtest.py", line 163, in test_archive_unwritable_content
shutil.copy2('./unwritable_content.zip', self.tmpdir)
File "/usr/lib/python2.7/shutil.py", line 130, in copy2
copyfile(src, dst)
File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: './unwritable_content.zip'
</pre>
*(from redmine: created on 2014-01-21, closed on 2014-01-29)*https://0xacab.org/mat/mat/-/issues/6617Test suite returns exit code 0 on failure2017-04-06T03:14:26ZintrigeriTest suite returns exit code 0 on failureThis makes it a pain to integrate the test suite as a blocker into e.g. Debian package building, but it would be the same for any CI effort.
*(from redmine: created on 2014-01-21, closed on 2014-02-19)*This makes it a pain to integrate the test suite as a blocker into e.g. Debian package building, but it would be the same for any CI effort.
*(from redmine: created on 2014-01-21, closed on 2014-02-19)*https://0xacab.org/mat/mat/-/issues/6618Status bar says "Cleaning Dirty" or "Cleaning Unknown"2017-04-06T03:14:26ZintrigeriStatus bar says "Cleaning Dirty" or "Cleaning Unknown"I suspect it should instead say "Cleaning FILENAME", no?
*(from redmine: created on 2014-01-21, closed on 2014-01-29)*I suspect it should instead say "Cleaning FILENAME", no?
*(from redmine: created on 2014-01-21, closed on 2014-01-29)*https://0xacab.org/mat/mat/-/issues/6619PO files are outdated in various ways2017-04-06T03:14:26ZintrigeriPO files are outdated in various waysIn 0.5: first, updated translations were not imported from Transifex. Second, the PO files were not updated to match the POT update (done in Git post-0.5).
Missing step in the release process doc, perhaps?
*(from redmine: created on ...In 0.5: first, updated translations were not imported from Transifex. Second, the PO files were not updated to match the POT update (done in Git post-0.5).
Missing step in the release process doc, perhaps?
*(from redmine: created on 2014-01-21, closed on 2014-02-19)*https://0xacab.org/mat/mat/-/issues/6620Cannot shred read-only files from temporary directory2017-04-06T03:14:26ZintrigeriCannot shred read-only files from temporary directory<pre>
$ mat perl-exercices-src.tar.bz2
[+] Cleaning src.tar.bz2
src.tar.bz2 cleaned !
shred: /tmp/tmpwRI3KU/exercices/src/blog/blib/lib/Blog.pm: failed to open for writing: Permission denied
shred: /tmp/tmpwRI3KU/exercices/src/blog/...<pre>
$ mat perl-exercices-src.tar.bz2
[+] Cleaning src.tar.bz2
src.tar.bz2 cleaned !
shred: /tmp/tmpwRI3KU/exercices/src/blog/blib/lib/Blog.pm: failed to open for writing: Permission denied
shred: /tmp/tmpwRI3KU/exercices/src/blog/blib/lib/Blog/Model/Schema.pm: failed to open for writing: Permission denied
shred: /tmp/tmpwRI3KU/exercices/src/blog/blib/lib/Blog/Model/Category.pm: failed to open for writing: Permission denied
shred: /tmp/tmpwRI3KU/exercices/src/blog/blib/lib/Blog/Model/Article.pm: failed to open for writing: Permission denied
</pre>
The temporary directory is correctly removed, but it seems that not all its content was correctly shred'ed, right?
*(from redmine: created on 2014-01-21, closed on 2014-01-28, relates #6604)*https://0xacab.org/mat/mat/-/issues/6627Sets very broad permissions on files to remove2017-04-06T03:14:26ZintrigeriSets very broad permissions on files to removeMAT 0.5.1 chmod's 777 the files it wants to remove. This seems a bit scary, without at least a security discussion that concludes why and how this is not dangerous in any awy.
*(from redmine: created on 2014-01-29, closed on 2014-02-17)*MAT 0.5.1 chmod's 777 the files it wants to remove. This seems a bit scary, without at least a security discussion that concludes why and how this is not dangerous in any awy.
*(from redmine: created on 2014-01-29, closed on 2014-02-17)*