GUI whitelist functionality for unsupported archive contents breaks when archives contain directories
When cleaning archives with unsupported file types inside and the archive file names contain directories, I noticed whatever choice I make in the popup asking which files to keep does not influence the result. Instead the only factor seems to be the 'Add unsupported file to archives' option in the preferences dialog. If that is checked then I always get all unsupported files in the archive, if it is unchecked I get none of them.
The reason is that the user-picked whitelist only contains the basenames of the files, which are compared against the full pathnames in the archive. These are not guaranteed to match.
Steps to reproduce (in mat's source directory):
tar -czvf foo.tar.gz test/*py
Check 'Add unsupported file to archive' in preferences (or not) Load the file into MAT, click 'Clean'. Pick some of the files displayed in the dialog, click Clean again. Inspect the resulting cleaned archive, which is either empty or contains all of the .py files, depending on the preference setting.
Tested with MAT 0.6.1 on Debian testing.
(from redmine: created on 2016-01-20)