SOURCES: lesspipe.sh - try 7z first for .zip/.jar files as it's ca...
glen
glen at pld-linux.org
Mon Oct 24 19:23:21 CEST 2005
Author: glen Date: Mon Oct 24 17:23:21 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- try 7z first for .zip/.jar files as it's capable of dealing large files
---- Files affected:
SOURCES:
lesspipe.sh (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SOURCES/lesspipe.sh
diff -u SOURCES/lesspipe.sh:1.17 SOURCES/lesspipe.sh:1.18
--- SOURCES/lesspipe.sh:1.17 Sun Oct 9 16:46:19 2005
+++ SOURCES/lesspipe.sh Mon Oct 24 19:23:16 2005
@@ -32,7 +32,7 @@
*.[Zz]|*.gz) gzip -dc -- "$1" ;;
*.bz) bzip -dc -- "$1" ;;
*.bz2) bzip2 -dc -- "$1" ;;
- *.zip|*.jar) unzip -l "$1" ;;
+ *.zip|*.jar) 7z l "$1" || unzip -l "$1" ;;
*.rpm) rpm -qpivl --changelog -- "$1" ;;
*.rar) unrar -p- l -- "$1" ;;
*.cpi|*.cpio) cpio -itv < "$1" ;;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/lesspipe.sh?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list