summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-11-06 01:58:44 +0000
committerMike Frysinger <vapier@gentoo.org>2007-11-06 01:58:44 +0000
commited2d3e2303d7dd090ad94666fc7d1c74fa95d679 (patch)
tree887058a679da8e7f254fa5ec0ea99248894d6a25
parentremove beryl (diff)
downloadhistorical-ed2d3e2303d7dd090ad94666fc7d1c74fa95d679.tar.gz
historical-ed2d3e2303d7dd090ad94666fc7d1c74fa95d679.tar.bz2
historical-ed2d3e2303d7dd090ad94666fc7d1c74fa95d679.zip
add support for LZMA files
Package-Manager: portage-2.1.3.16
-rw-r--r--sys-apps/less/Manifest14
-rw-r--r--sys-apps/less/files/lesspipe.sh6
2 files changed, 11 insertions, 9 deletions
diff --git a/sys-apps/less/Manifest b/sys-apps/less/Manifest
index afcb124c3e4a..497793a91422 100644
--- a/sys-apps/less/Manifest
+++ b/sys-apps/less/Manifest
@@ -13,10 +13,10 @@ AUX less.envd 50 RMD160 e9d7b2497aa81e13b740dc765c0fc87d4f1f2f8e SHA1 f903d459e7
MD5 882806d6bc5097644745dfed2ba5c573 files/less.envd 50
RMD160 e9d7b2497aa81e13b740dc765c0fc87d4f1f2f8e files/less.envd 50
SHA256 1f186ac4f500c842a9016702b3d7e9d69fe161db23cf56c316ed7f5a51da6a4e files/less.envd 50
-AUX lesspipe.sh 5761 RMD160 982878f23d1be54af11c563efe1f66a1d9b074b1 SHA1 5a87ba56a262c999d492c5ba1ad7c0433caff8ce SHA256 abfe6bc587d612fe79349739d260b31a6319eab98710fa76316bfc13b886dd7f
-MD5 cdbe9b4075f9a94125ecf8cc468bff83 files/lesspipe.sh 5761
-RMD160 982878f23d1be54af11c563efe1f66a1d9b074b1 files/lesspipe.sh 5761
-SHA256 abfe6bc587d612fe79349739d260b31a6319eab98710fa76316bfc13b886dd7f files/lesspipe.sh 5761
+AUX lesspipe.sh 5853 RMD160 6e4c19a388496a409e625b95b5c07796d767373d SHA1 f021abaf2cedfc79791df43424a7b2b734ae94ef SHA256 76904d781e2a54e95862aea2bfa0c565e3158689d2fedd967cde8f2117c5dc75
+MD5 9dba7cbc76b35c1161e7a67492dcc08b files/lesspipe.sh 5853
+RMD160 6e4c19a388496a409e625b95b5c07796d767373d files/lesspipe.sh 5853
+SHA256 76904d781e2a54e95862aea2bfa0c565e3158689d2fedd967cde8f2117c5dc75 files/lesspipe.sh 5853
DIST code2color 199875 RMD160 378d340a20c3fe500f19116220d54816fe279225 SHA1 b30526dd52c747b8bd6dcf53cf5cc94824c47feb SHA256 ce63f148293a81b0fe5e072f33285f9bf4f1d832f64b23a2220519674a47091d
DIST less-406.tar.gz 291349 RMD160 db62576ba6976cc1efe17680b6a6da5237dba425 SHA1 7aeab848682c3ac7cd9ba54e4c96199f9fdf25e5 SHA256 5cb93fa75cce38f472ac91503bdd56c601037551cda3f999447773dfa1279130
DIST less-408.tar.gz 291963 RMD160 1548cb1a8bfe306264aed929ee4aaad950748945 SHA1 63fe61587fb90b23cbfd47155d06b9bc49fc0716 SHA256 a1e325a0e38a672e2b8f5667436b6f84bb48eddb2836ea08a514013adc69940d
@@ -53,7 +53,7 @@ SHA256 77a98f77226c369dec11663c8fe1246abeefa21970eec6b3d891c3b4fce4cecf files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHD+Q4p/wUKkr7RBoRAqfAAKCtR0iIYYk64+1eNHhUc8WtluUnugCg21b9
-e8+jxDaOVmIhBIYH/UDpZfM=
-=+GLC
+iD8DBQFHL8pZp/wUKkr7RBoRAjLcAJ9TKBIGjBSnafbfMl8A/CPSF/J2gACfd3fc
+eIKPTtBceNk7PhdN9M/Ow3k=
+=XDgR
-----END PGP SIGNATURE-----
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index 471dcddad51d..ba183b944c1a 100644
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -50,7 +50,7 @@ lesspipe() {
local out=$(${DECOMPRESSOR} -- "$1" | file -)
case ${out} in
*troff*)
- # Need to make sure we pass path to man or it will try
+ # Need to make sure we pass path to man or it will try
# to locate "$1" in the man search paths
if [[ $1 == /* ]] ; then
man -- "$1"
@@ -86,10 +86,12 @@ lesspipe() {
*.tar) tar tvvf "$1" ;;
*.tar.bz2|*.tbz2|*.tbz) tar tjvvf "$1" ;;
*.tar.gz|*.tgz|*.tar.z) tar tzvvf "$1" ;;
+ *.tar.lzma) lzma -dc -- "$1" | tar tvvf - ;;
### Misc archives ###
*.bz2) bzip2 -dc -- "$1" ;;
*.gz|*.z) gzip -dc -- "$1" ;;
+ *.lzma) lzma -dc -- "$1" ;;
*.zip) unzip -l "$1" ;;
*.rpm) rpm -qpivl --changelog -- "$1" ;;
*.cpi|*.cpio) cpio -itv < "$1" ;;
@@ -195,7 +197,7 @@ if [[ -z $1 ]] ; then
echo "Usage: lesspipe.sh <file>"
elif [[ $1 == "-V" ]] ; then
Id="cvsid"
- cvsid="$Id: lesspipe.sh,v 1.24 2007/08/25 15:42:52 vapier Exp $"
+ cvsid="$Id: lesspipe.sh,v 1.25 2007/11/06 01:58:44 vapier Exp $"
cat <<-EOF
$cvsid
Copyright 2001-2006 Gentoo Foundation