Package: less
Version: 436-1
Severity: normal

Running lesspipe archive.7z will result in the following error:
"No 7za available"
This will happen even if the p7zip package is installed.
However, if p7zip-full package is installed, it will work just fine.

lesspipe is using /usr/bin/7za to view the contents of 7-Zip files.

However, there are currently 2 packages in debian capable of handling
7-Zip files:
p7zip-full - which provides /usr/bin/7za - a standalone version of the
7-zip tool that handles 7z archives
p7zip      - which provides /usr/bin/7zr - a standalone *minimal*
version of the 7-zip tool that only handles 7z archives.

lesspipe can support the 7-Zip format using the standalone minimal
version, /usr/bin/7zr.

Here's a patch that adds /usr/bin/7zr as a fallback in case
/usr/bin/7za is not found:

--- lesspipe.orig   2009-08-24 08:39:25.000000000 +0000
+++ lesspipe    2009-08-24 09:13:09.000000000 +0000
@@ -197,7 +197,8 @@

            *.7z)
                if [ -x "`which 7za`" ]; then 7za l "$1";
-               else echo "No 7za available"; fi ;;
+               elif [ -x "`which 7zr`" ]; then 7zr l "$1";
+               else echo "No 7za or 7zr available"; fi ;;

            *.zoo)
                if [ -x "`which zoo`" ]; then zoo v "$1";



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages less depends on:
ii  debianutils            2.30              Miscellaneous utilities specific t
ii  libc6                  2.9-25            GNU C Library: Shared libraries
ii  libncurses5            5.7+20090803-1+b1 shared libraries for terminal hand

less recommends no packages.

less suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to