summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-26 00:32:53 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-26 00:32:53 +0000
commit1aea3593eaec79756318c075825221edd34632ef (patch)
treeeddde62fedfa07ebcf3c34998b0a05901319b1c1
parentStable on x86; bug #113519 (diff)
downloadgentoo-2-1aea3593eaec79756318c075825221edd34632ef.tar.gz
gentoo-2-1aea3593eaec79756318c075825221edd34632ef.tar.bz2
gentoo-2-1aea3593eaec79756318c075825221edd34632ef.zip
add support for listing arc files
(Portage version: 2.0.53_rc7)
-rw-r--r--sys-apps/less/files/lesspipe.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index 43d3c6bfdf18..6d014cd8ed62 100644
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -92,6 +92,7 @@ lesspipe() {
*.rpm) rpm -qpivl --changelog -- "$1" ;;
*.cpi|*.cpio) cpio -itv < "$1" ;;
*.ace) unace l -- "$1" ;;
+ *.arc) arc v "$1" ;;
*.arj) unarj l -- "$1" ;;
*.cab) cabextract -l -- "$1" ;;
*.lha|*.lzh) lha v "$1" ;;
@@ -183,8 +184,8 @@ lesspipe() {
if [[ -z $1 ]] ; then
echo "Usage: lesspipe.sh <file>"
elif [[ $1 == "-V" ]] ; then
- Id="lesspipe.sh"
- cvsid="$Id: lesspipe.sh,v 1.12 2005/11/22 22:29:08 vapier Exp $"
+ Id="cvsid"
+ cvsid="$Id: lesspipe.sh,v 1.13 2005/11/26 00:32:53 vapier Exp $"
cat <<-EOF
$cvsid
Copyright 2001-2005 Gentoo Foundation