Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/less/files: lesspipe.sh
Date: Tue, 31 Dec 2013 02:25:35
Message-Id: 20131231022530.EC8BB2004E@flycatcher.gentoo.org
1 vapier 13/12/31 02:25:30
2
3 Modified: lesspipe.sh
4 Log:
5 Fallback to rpm2tar when rpm is not available
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
8
9 Revision Changes Path
10 1.54 sys-apps/less/files/lesspipe.sh
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/lesspipe.sh?rev=1.54&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/lesspipe.sh?rev=1.54&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/less/files/lesspipe.sh?r1=1.53&r2=1.54
15
16 Index: lesspipe.sh
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/less/files/lesspipe.sh,v
19 retrieving revision 1.53
20 retrieving revision 1.54
21 diff -u -r1.53 -r1.54
22 --- lesspipe.sh 6 Aug 2013 21:35:30 -0000 1.53
23 +++ lesspipe.sh 31 Dec 2013 02:25:30 -0000 1.54
24 @@ -117,7 +117,7 @@
25 *.gz|*.z|\
26 *.lz|\
27 *.lzma|*.xz) ${DECOMPRESSOR} -- "$1" ;;
28 - *.rpm) rpm -qpivl --changelog -- "$1" ;;
29 + *.rpm) rpm -qpivl --changelog -- "$1" || rpm2tar -O "$1" | tar tvvf -;;
30 *.cpi|*.cpio) cpio -itv < "$1" ;;
31 *.ace) unace l "$1" ;;
32 *.arc) arc v "$1" ;;
33 @@ -236,7 +236,7 @@
34 elif [[ $1 == "-V" || $1 == "--version" ]] ; then
35 Id="cvsid"
36 cat <<-EOF
37 - $Id: lesspipe.sh,v 1.53 2013/08/06 21:35:30 vapier Exp $
38 + $Id: lesspipe.sh,v 1.54 2013/12/31 02:25:30 vapier Exp $
39 Copyright 2001-2013 Gentoo Foundation
40 Mike Frysinger <vapier@g.o>
41 (with plenty of ideas stolen from other projects/distros)