summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-05-30 23:54:10 +0000
committerMike Frysinger <vapier@gentoo.org>2008-05-30 23:54:10 +0000
commitb6117081d2fc5bafa5b62d52357106fdac016202 (patch)
treef879030f5d02b3cfd1cc997a6f47550d8abbc9ea /sys-apps/less
parentGenerate .py[co] files at pkg_postinst (bug #215538) (diff)
downloadgentoo-2-b6117081d2fc5bafa5b62d52357106fdac016202.tar.gz
gentoo-2-b6117081d2fc5bafa5b62d52357106fdac016202.tar.bz2
gentoo-2-b6117081d2fc5bafa5b62d52357106fdac016202.zip
handle 7-zip archives via `file` so that things like sd7 files work magically
(Portage version: 2.2_pre5.spank.spunk)
Diffstat (limited to 'sys-apps/less')
-rw-r--r--sys-apps/less/files/lesspipe.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index 1e1f4003e057..0ab69e55ac0e 100644
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -21,6 +21,7 @@ lesspipe_file() {
local out=$(file -L -- "$1")
local suffix
case ${out} in
+ *" 7-zip archive"*) suffix="7z";;
*" ar archive"*) suffix="a";;
*" CAB-Installer"*) suffix="cab";;
*" cpio archive"*) suffix="cpio";;
@@ -229,7 +230,7 @@ if [[ -z $1 ]] ; then
echo "Usage: lesspipe.sh <file>"
elif [[ $1 == "-V" || $1 == "--version" ]] ; then
Id="cvsid"
- cvsid="$Id: lesspipe.sh,v 1.29 2008/04/18 19:58:13 vapier Exp $"
+ cvsid="$Id: lesspipe.sh,v 1.30 2008/05/30 23:54:10 vapier Exp $"
cat <<-EOF
$cvsid
Copyright 2001-2008 Gentoo Foundation