Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Pavel Raiskup
a3b33bb3d5 lesspipe.sh: read *.rpm text files
Resolves: rhbz#1449790
Version: 481-7
2017-05-16 16:47:31 +02:00
2 changed files with 6 additions and 2 deletions

View file

@ -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 <praiskup@redhat.com> - 481-7
- read correctly text files named accidentally '*.rpm' (rhbz#1449790)
* Tue Oct 11 2016 Ville Skyttä <ville.skytta@iki.fi> - 481-6
- Prefer gpg2 over gpg for *.gpg (rhbz#1383284)

View file

@ -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