diff --git a/app/tools/picons.py b/app/tools/picons.py index 4cfe55b7..7578808d 100644 --- a/app/tools/picons.py +++ b/app/tools/picons.py @@ -124,7 +124,11 @@ class PiconsCzDownloader: def extract(self, src, dest, picon_ids=None): """ Extracts 7z archives. """ # TODO: think about https://github.com/miurahr/py7zr - cmd = ["7zr", "l", src] + exe = "7zr" + if not os.path.isfile("/usr/bin/7zr"): + raise PiconsError("7-zip [7zr] archiver not found!") + + cmd = [exe, "l", src] try: out, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() if err: @@ -148,7 +152,7 @@ class PiconsCzDownloader: os.remove(src) raise PiconsError("No matching picons found!") - cmd = ["7zr", "e", src, "-o{}".format(dest), "-y", "-r"] + cmd = [exe, "e", src, "-o{}".format(dest), "-y", "-r"] cmd.extend(to_extract) try: out, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() diff --git a/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo b/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo index 2bd4de24..ca42c96c 100644 Binary files a/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo and b/deb/usr/share/locale/be/LC_MESSAGES/demon-editor.mo differ diff --git a/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo b/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo index 6807a8a4..4ffd73e6 100644 Binary files a/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo and b/deb/usr/share/locale/de/LC_MESSAGES/demon-editor.mo differ