[packages/lesspipe] - 1.55: fix .bz handling, add tar.bz

glen glen at pld-linux.org
Mon Nov 5 20:23:32 CET 2012


commit 19a71b0160bc733de4f5b57e403953f1f85712cc
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Nov 5 21:22:03 2012 +0200

    - 1.55: fix .bz handling, add tar.bz
    
    bzip does not undestand "--" option, so feed to stdin to bypass possible
    quoting issues

 lesspipe.sh   | 5 ++---
 lesspipe.spec | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/lesspipe.spec b/lesspipe.spec
index 83059b1..793889c 100644
--- a/lesspipe.spec
+++ b/lesspipe.spec
@@ -5,7 +5,7 @@
 Summary:	Input preprocessor for less
 Summary(pl.UTF-8):	Preprocesor wejścia dla narzędzia less
 Name:		lesspipe
-Version:	1.54
+Version:	1.55
 Release:	1
 License:	GPL v2
 Group:		Applications/Text
diff --git a/lesspipe.sh b/lesspipe.sh
index f79ef97..2622b02 100755
--- a/lesspipe.sh
+++ b/lesspipe.sh
@@ -19,8 +19,6 @@
 #  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 #  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 #  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# $Id$'
 
 # This is a preprocessor for 'less'.  It is used when this environment
 # variable is set:   LESSOPEN="|lesspipe.sh %s"
@@ -90,7 +88,8 @@ lesspipe() {
 	# archives
 	*.7z) 7z l "$1" ;;
 	*.a) ar tvf "$1" ;;
-	*.bz) bzip -dc -- "$1" ;;
+	*.tar.bz|*.tbz) bzip -d < "$1" | tar tvvf - ;;
+	*.bz) bzip -d < "$1" ;;
 	*.tar.bz2|*.tbz2) bzip2 -dc -- "$1" | tar tvvf - ;;
 	*.bz2) bzip2 -dc -- "$1" ;;
 	*.cab|*.CAB) cabextract -l -- "$1" ;;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lesspipe.git/commitdiff/19a71b0160bc733de4f5b57e403953f1f85712cc



More information about the pld-cvs-commit mailing list