--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: ark: does not open lha files from the command line
- From: Flavio Stanchina <flavio@stanchina.net>
- Date: Sun, 02 Nov 2008 00:05:06 +0100
- Message-id: <20081101230506.3628.70028.reportbug@forza>
Package: ark
Version: 4:3.5.10-2.1
Severity: normal
Tags: patch
When you try to open a lha file from the command line ("ark file.lha"),
you get this error:
The utility is not in your PATH.
Please install it or contact your system administrator.
That's because the lha module doesn't set the unarchiver. The attached
patch fixes it. I copied the logic from other single-program formats,
such as ar and zoo.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (100, 'testing'), (10, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24.7-athlon
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ark depends on:
ii kdelibs4c2a 4:3.5.9.dfsg.1-6 core libraries and binaries for al
ii libc6 2.7-14 GNU C Library: Shared libraries
ii libgcc1 1:4.3.1-2 GCC support library
ii libqt3-mt 3:3.3.8b-5 Qt GUI Library (Threaded runtime v
ii libstdc++6 4.3.1-2 The GNU Standard C++ Library v3
Versions of packages ark recommends:
ii bzip2 1.0.4-2 high-quality block-sorting file co
hi ncompress 4.2.4.0-3 Original Lempel-Ziv compress/uncom
hi p7zip-full 4.55~dfsg.1-2 7z and 7za file archivers with hig
ii unzip 5.52-10 De-archiver for .zip files
ii zip 2.32-1 Archiver for .zip files
ii zoo 2.10-20 manipulate zoo archives
-- no debconf information
diff --git a/ark/lha.cpp b/ark/lha.cpp
index f890139..adc138c 100644
--- a/ark/lha.cpp
+++ b/ark/lha.cpp
@@ -55,8 +55,9 @@
LhaArch::LhaArch( ArkWidget *_gui, const QString & _fileName )
: Arch( _gui, _fileName )
{
- m_archiver_program = "lha";
+ m_archiver_program = m_unarchiver_program = "lha";
verifyCompressUtilityIsAvailable( m_archiver_program );
+ verifyUncompressUtilityIsAvailable( m_unarchiver_program );
m_headerString = "----";
}
--- End Message ---