Commit c824a68d authored by atenart's avatar atenart
Browse files

libmat2: reshape the dependencies list

Invert the keys and values in DEPENDENCIES. It seems more natural to use
the key as a key in check_dependencies(), and the value as the value.
This also help in preparing for reworking the check_dependencies()
Signed-off-by: atenart's avatarAntoine Tenart <>
parent c8602b8c
......@@ -30,12 +30,12 @@ UNSUPPORTED_EXTENSIONS = {
'cairo': 'Cairo',
'gi': 'PyGobject',
'gi.repository.GdkPixbuf': 'GdkPixbuf from PyGobject',
'gi.repository.Poppler': 'Poppler from PyGobject',
'gi.repository.GLib': 'GLib from PyGobject',
'mutagen': 'Mutagen',
'Cairo': 'cairo',
'PyGobject': 'gi',
'GdkPixbuf from PyGobject': 'gi.repository.GdkPixbuf',
'Poppler from PyGobject': 'gi.repository.Poppler',
'GLib from PyGobject': 'gi.repository.GLib',
'Mutagen': 'mutagen',
......@@ -46,11 +46,11 @@ def check_dependencies() -> Dict[str, bool]:
ret['Ffmpeg'] = bool(video._get_ffmpeg_path())
for key, value in DEPENDENCIES.items():
ret[value] = True
ret[key] = True
except ImportError: # pragma: no cover
ret[value] = False # pragma: no cover
ret[key] = False # pragma: no cover
return ret
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