From a3b33bb3d5f30032c968906be2ccc377f1e2754a Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 16 May 2017 16:43:36 +0200 Subject: [PATCH] lesspipe.sh: read *.rpm text files Resolves: rhbz#1449790 Version: 481-7 --- less.spec | 5 ++++- lesspipe.sh | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/less.spec b/less.spec index afc67be..8163135 100644 --- a/less.spec +++ b/less.spec @@ -1,7 +1,7 @@ Summary: A text file browser similar to more, but better Name: less Version: 481 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv3+ or BSD Group: Applications/Text Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz @@ -65,6 +65,9 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d %{_mandir}/man1/* %changelog +* Tue May 16 2017 Pavel Raiskup - 481-7 +- read correctly text files named accidentally '*.rpm' (rhbz#1449790) + * Tue Oct 11 2016 Ville Skyttä - 481-6 - Prefer gpg2 over gpg for *.gpg (rhbz#1383284) diff --git a/lesspipe.sh b/lesspipe.sh index 017fe2d..58f1ac1 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -74,7 +74,8 @@ case "$1" in *.[zZ]|*.gz) gzip -dc -- "$1"; exit $? ;; *.bz2) bzip2 -dc -- "$1"; exit $? ;; *.zip|*.jar|*.nbm) zipinfo -- "$1"; exit $? ;; -*.rpm) rpm -qpivl --changelog -- "$1"; exit $? ;; +# --nomanifest -> rhbz#1450277 +*.rpm) rpm -qpivl --changelog --nomanifest -- "$1"; exit $? ;; *.cpi|*.cpio) cpio -itv < "$1"; exit $? ;; *.gpg) if [ -x /usr/bin/gpg2 ]; then