summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2011-10-28 19:16:11 +0200
committerMartin Väth <martin@mvath.de>2015-10-11 10:46:47 +0200
commitdc0db3c28e7000837b6f8e495599839406507beb (patch)
tree944afb00da0ccf50867eb2bedfb1f4a20642d3c6 /sys-apps/less/files
parentAdd use.local.desc (diff)
downloadmv-dc0db3c28e7000837b6f8e495599839406507beb.tar.gz
mv-dc0db3c28e7000837b6f8e495599839406507beb.tar.bz2
mv-dc0db3c28e7000837b6f8e495599839406507beb.zip
Bump less. Caches follow new eclasses
Diffstat (limited to 'sys-apps/less/files')
-rw-r--r--sys-apps/less/files/lesspipe.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index b656e306..4fc04ace 100644
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -160,8 +160,12 @@ lesspipe() {
*.flac) metaflac --list "$1" ;;
*.torrent) torrentinfo "$1" || torrentinfo-console "$1" || ctorrent -x "$1" ;;
*.bin|*.cue|*.raw)
- # not all .bin/.raw files are cd images, so fall back to hexdump
- cd-info --no-header --no-device-info "$1" || lesspipe_file "$1"
+ # not all .bin/.raw files are cd images #285507
+ # fall back to lesspipe_file if .cue doesn't exist, or if
+ # cd-info failed to parse things sanely
+ [[ -e ${1%.*}.cue ]] \
+ && cd-info --no-header --no-device-info "$1" \
+ || lesspipe_file "$1"
;;
*.iso)
iso_info=$(isoinfo -d -i "$1")
@@ -229,7 +233,7 @@ if [[ -z $1 ]] ; then
elif [[ $1 == "-V" || $1 == "--version" ]] ; then
Id="cvsid"
cat <<-EOF
- $Id: lesspipe.sh,v 1.45 2011/01/20 03:26:14 vapier Exp $
+ $Id: lesspipe.sh,v 1.46 2011/10/09 19:19:07 vapier Exp $
Copyright 2001-2010 Gentoo Foundation
Mike Frysinger <vapier@gentoo.org>
(with plenty of ideas stolen from other projects/distros)