From 11e390be08b1c88a28b37a18bd6bbe4c88901d4a Mon Sep 17 00:00:00 2001
From: Daniel Hahler <git@thequod.de>
Date: Thu, 25 Aug 2011 14:20:36 +0200
Subject: [PATCH] u7z: Improve handling of missing p7zip binaries.
Fixes #2598 (https://www.midnight-commander.org/ticket/2598)
---
src/vfs/extfs/helpers/u7z | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/vfs/extfs/helpers/u7z b/src/vfs/extfs/helpers/u7z
index 9d41ac6..8ae09fe 100755
a
|
b
|
|
5 | 5 | # Some Bugfixes/workarounds by Sergiy Niskorodov <sgh@mail.zp.ua> |
6 | 6 | # Licensed under GNU GPL version 2 or later version. |
7 | 7 | |
8 | | P7ZIP=`which 7z 2>/dev/null` || P7ZIP=`which 7za 2>/dev/null` || P7ZIP=`which 7zr 2>/dev/null` |
| 8 | P7ZIP=`which 7z 2>/dev/null` || P7ZIP=`which 7za 2>/dev/null` || P7ZIP=`which 7zr 2>/dev/null` || P7ZIP="" |
| 9 | |
| 10 | if [ -z "$P7ZIP" ] ; then |
| 11 | echo "Error: could not find p7zip (looked for 7z, 7za and 7zr)." >&2 |
| 12 | exit 1 |
| 13 | fi |
9 | 14 | |
10 | 15 | mcu7zip_list () |
11 | 16 | { |