Your message dated Sun, 19 Apr 2009 09:05:48 +0000
with message-id <[email protected]>
and subject line Bug#508951: fixed in less 429-1
has caused the Debian Bug report #508951,
regarding lesspipe with lzma
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
508951: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508951
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: less
Severity: wishlist
Owner: [email protected]
On Thu, Feb 14, 2008 at 09:00:25PM +0100, [email protected] wrote:
>I've added a few lines to the lesspipe in order to make it work with
>lzma-compressed files (usually .lzma) and lzma-compressed-tarballs
>(usually .tar.lzma).
>
>See the attachement
>
>lzma is one of the algorithms used in 7zip, but the ".lzma"-files come
>from the "lzma" package in debian which produces files that are not
>compatible with ".7z" files IIRC.
#!/bin/sh
#
# lessfile/lesspipe
# $Id: lessopen,v 1.4 1998/05/12 09:37:46 torin Exp $
# Plus POSIX sh changes by Y.Dirson
#
# Less filter for viewing non text files.
#
# Written by: Behan Webster <[email protected]>
# Many Modifications by Darren Stalder
# Further Modifications by Thomas Schoepf <[email protected]>
#
# combined lessfile and lesspipe to avoid duplication of decode stage
# shell is sure icky. I'm real tempted to rewrite the whole thing in Perl
#
# Unfortunately, this means that I have filename dependencies sprinkled
# throughout the code. If you don't want lessfile to be called that,
# you'll need to change the LESSFILE envar below.
#
# Usage: eval `lessfile` or eval `lesspipe`
#
# less passes in:
# $1 filename to be viewed with less (used by LESSOPEN)
# and possibly (if used by lessfile)
# $2 filename that was created during LESSOPEN
TMPDIR=${TMPDIR:-/tmp}
BASENAME=`basename $0`
LESSFILE=lessfile
# Helper function to list contents of ISO files (CD images)
iso_list() {
isoinfo -d -i "$1"
isoinfo -d -i "$1" | grep -q ^Rock\.Ridge && iiopts="$iiopts -R"
isoinfo -d -i "$1" | grep -q ^Joliet && iiopts="$iiopts -J"
echo
isoinfo -f $iiopts -i "$1"
}
if [ $# -eq 1 ] ; then
# we were called as LESSOPEN
# if the file doesn't exist, we don't do anything
if [ ! -r "$1" ]; then
exit 0
fi
# generate filename for possible use by lesspipe
umask 077
if [ $BASENAME = $LESSFILE ]; then
TMPFILE=`tempfile -d $TMPDIR -p lessf`
if [ -z "$TMPFILE" ]; then
echo >&2 "Could not find essential program 'tempfile'.
Exiting"
exit 1
fi
fi
(
# possibly redirect stdout to a file for lessfile
if [ $BASENAME = $LESSFILE ]; then exec > $TMPFILE; fi
# Allow for user defined filters
#if [ -x ~/.lessfilter -a -O ~/.lessfilter ]; then
if [ -x ~/.lessfilter ]; then
~/.lessfilter "$1"
if [ $? -eq 0 ]; then
if [ $BASENAME = $LESSFILE ]; then
if [ -s $TMPFILE ]; then
echo $TMPFILE
else
rm -f $TMPFILE
fi
fi
exit 0
fi
fi
# Decode file for less
case `echo "$1" | tr '[:upper:]' '[:lower:]'` in
*.arj)
if [ -x "`which unarj`" ]; then unarj l "$1"
else echo "No unarj available"; fi ;;
*.tar.bz2)
if [ -x "`which bunzip2`" ]; then
bunzip2 -dc "$1" | tar tvvf -
else echo "No bunzip2 available"; fi ;;
*.bz)
if [ -x "`which bunzip`" ]; then bunzip -c "$1"
else echo "No bunzip available"; fi ;;
*.bz2)
if [ -x "`which bunzip2`" ]; then bunzip2 -dc
"$1"
else echo "No bunzip2 available"; fi ;;
*.deb|*.udeb)
echo "$1:"; dpkg --info "$1"
echo
echo '*** Contents:'; dpkg-deb --contents "$1"
;;
*.doc)
if [ -x "`which catdoc`" ]; then catdoc "$1"
else echo "No catdoc available"; fi ;;
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif)
if [ -x "`which identify`" ]; then
identify "$1"
else
echo "No identify available"
echo "Install ImageMagick to browse
images"
fi
;;
*.iso)
if [ -x "`which isoinfo`" ]; then iso_list "$1"
else
echo "No isoinfo available"
echo "Install mkisofs to view ISO
images"
fi
;;
*.bin|*.raw)
if [ -x "`which isoinfo`" ]; then
file "$1" | grep -q ISO\.9660 &&
iso_list "$1"
else
echo "No isoinfo available"
echo "Install mkisofs to view ISO
images"
fi
;;
*.lha|*.lzh)
if [ -x "`which lha`" ]; then lha v "$1"
else echo "No lha available"; fi ;;
*.tar.lzma)
if [ -x "`which unlzma`" ]; then
unlzma -dc "$1" | tar tvvf -
else echo "No unlzma available"; fi ;;
*.lzma)
if [ -x "`which unlzma`" ]; then unlzma -dc "$1"
else echo "No unlzma available"; fi ;;
*.pdf)
if [ -x "`which pdftotext`" ]; then pdftotext
"$1" -
else echo "No pdftotext available"; fi ;;
*.rar|*.r[0-9][0-9])
if [ -x "`which rar`" ]; then rar v "$1"
elif [ -x "`which unrar`" ]; then unrar v "$1"
else echo "No rar or unrar available"; fi ;;
*.rpm)
if [ -x "`which rpm`" ]; then
echo "$1:"; rpm -q -i -p "$1"
echo
echo '*** Contents:'
rpm -q -l -p "$1"
else echo "rpm isn't available, no query on rpm
package possible"; fi ;;
*.tar.gz|*.tgz|*.tar.z|*.tar.dz)
tar tzvf "$1" ;;
# Note that this is out of alpha order so that we don't
catch
# the gzipped tar files.
*.gz|*.z|*.dz)
gzip -dc "$1" ;;
*.tar)
tar tvf "$1" ;;
*.jar|*.war|*.ear|*.xpi|*.zip)
if [ -x "`which unzip`" ]; then unzip -v "$1";
elif [ -x "`which miniunzip`" ]; then miniunzip
-l "$1";
elif [ -x "`which miniunz`" ]; then miniunz -l
"$1";
else echo "No unzip, miniunzip or miniunz
available"; fi ;;
*.7z)
if [ -x "`which 7za`" ]; then 7za l "$1";
else echo "No 7za available"; fi ;;
*.zoo)
if [ -x "`which zoo`" ]; then zoo v "$1";
elif [ -x "`which unzoo`" ]; then unzoo -l "$1";
else echo "No unzoo or zoo available"; fi ;;
esac
) 2>/dev/null
if [ $BASENAME = $LESSFILE ]; then
if [ -s $TMPFILE ]; then
echo $TMPFILE
else
rm -f $TMPFILE
fi
fi
elif [ $# -eq 2 ] ; then
#
# we were called as LESSCLOSE
# delete the file created if we were lessfile
#
if [ $BASENAME = $LESSFILE ]; then
if [ -n "$BASH" ]; then
if [ ! -O "$2" ]; then
echo "Error in deleting $2" > /dev/tty
fi
fi
if [ -f "$2" ]; then
rm -f "$2"
else
echo "Error in deleting $2" > /dev/tty
fi
fi
elif [ $# -eq 0 ] ; then
#
# must setup shell to use LESSOPEN/LESSCLOSE
#
# I have no idea how some of the more esoteric shells (es, rc) do
# things. If they don't do things in a Bourne manner, send me a patch
# and I'll incorporate it.
#
# first determine the full path of lessfile/lesspipe
# if you can determine a better way to do this, send me a patch, I've
# not shell-scripted for many a year.
FULLPATH=`cd \`dirname $0\`;pwd`/$BASENAME
case "$SHELL" in
*csh)
if [ $BASENAME = $LESSFILE ]; then
echo "setenv LESSOPEN \"$FULLPATH %s\";"
echo "setenv LESSCLOSE \"$FULLPATH %s %s\";"
else
echo "setenv LESSOPEN \"| $FULLPATH %s\";"
echo "setenv LESSCLOSE \"$FULLPATH %s %s\";"
fi
;;
*)
if [ $BASENAME = $LESSFILE ]; then
echo "export LESSOPEN=\"$FULLPATH %s\";"
echo "export LESSCLOSE=\"$FULLPATH %s %s\";"
else
echo "export LESSOPEN=\"| $FULLPATH %s\";"
echo "export LESSCLOSE=\"$FULLPATH %s %s\";"
fi
;;
esac
#echo "# If you tried to view a file with a name that starts with '#',
you"
#echo "# might see this message instead of the file's contents."
#echo "# To view the contents, try to put './' ahead of the filename
when"
#echo "# calling less."
else
echo "Usage: eval \`$BASENAME\`"
exit
fi
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: less
Source-Version: 429-1
We believe that the bug you reported is fixed in the latest version of
less, which is due to be installed in the Debian FTP archive:
less_429-1.diff.gz
to pool/main/l/less/less_429-1.diff.gz
less_429-1.dsc
to pool/main/l/less/less_429-1.dsc
less_429-1_amd64.deb
to pool/main/l/less/less_429-1_amd64.deb
less_429.orig.tar.gz
to pool/main/l/less/less_429.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Anibal Monsalve Salazar <[email protected]> (supplier of updated less package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 17 Apr 2009 22:15:43 +1000
Source: less
Binary: less
Architecture: source amd64
Version: 429-1
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <[email protected]>
Changed-By: Anibal Monsalve Salazar <[email protected]>
Description:
less - pager program similar to more
Closes: 178276 187021 397191 400686 405001 418943 432002 500092 508951 523981
Changes:
less (429-1) unstable; urgency=low
.
* New upstream; closes: #523981
- The characters $, =, %, and ~ are metacharacters; closes: #405001
* Standards version is 3.8.1
* debhelper compatibility is 7
* Run dh_prep instead of dh_clean -k
* Add debian/patches/02-178276-empty_file_isnt_binary.patch by Steve Kemp;
closes: #178276, #187021
* Update description; patch by Justin B Rye; closes: #432002
* Improve processing of .doc files; patch by Steve Kemp; closes: #397191
* Use tar --force-local; patch by Karl Chen; closes: #400686
* Support lzma in lesspipe; patch by Daniel Scheple and s_lange;
closes: #418943, #508951
* Move less to /bin; closes: #500092
Checksums-Sha1:
582e87b5e1bf4438109150e6c52d880a4f500bc2 998 less_429-1.dsc
78a2fd4777918d0f551236bd7872d84b9129a7d1 303463 less_429.orig.tar.gz
bd0bd2244cafd537c93263a7ece72a8b37a4e916 17224 less_429-1.diff.gz
fd11126e73972a249f7c5e3d494881265deb2a3d 126920 less_429-1_amd64.deb
Checksums-Sha256:
d6e75a2e6ceb0b4ec554609e9bfd455b856a7eb91313b4a35a0b474fca9fc509 998
less_429-1.dsc
d3073eceb3c9314d1fab7df92a39d1aea4782db4cafa982ea670cd2f6c713408 303463
less_429.orig.tar.gz
ad5ed77484b3fe43b2332f16a81d605bab5e1046113718dba08a2bdd965b30ef 17224
less_429-1.diff.gz
61be3c375e0408dc8c827b28e7cc4f1ed57195acbda21f066799569faf73a1ab 126920
less_429-1_amd64.deb
Files:
91dcd4783110d96fb441a8ed1efcb8a1 998 text standard less_429-1.dsc
206f2f13b9b0a35e45df660fcb6af31d 303463 text standard less_429.orig.tar.gz
e2ff2179852449b256b88f6930e81e7f 17224 text standard less_429-1.diff.gz
a763fa2526898d71f8567b67de651079 126920 text standard less_429-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknq2LEACgkQgY5NIXPNpFVHXgCfaehIPIWX+6Oc+jfdwIx15oqo
NsoAn1T6iJ6yxW93Wt/wAAemMSX7ajGp
=23p4
-----END PGP SIGNATURE-----
--- End Message ---