From 006d677ec3ba20160bc1e437bb1b351f1eac5f6a Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Tue, 13 Nov 2007 15:00:32 +0000 Subject: [PATCH] - remove which usage (#312591) --- less.spec | 6 ++++-- lesspipe.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/less.spec b/less.spec index ed09d69..727656f 100644 --- a/less.spec +++ b/less.spec @@ -1,7 +1,7 @@ Summary: A text file browser similar to more, but better Name: less Version: 409 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/Text Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz @@ -12,7 +12,6 @@ Patch1: less-406-Foption.patch Patch4: less-394-time.patch URL: http://www.greenwoodsoftware.com/less/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: which BuildRequires: ncurses-devel BuildRequires: pcre-devel BuildRequires: autoconf @@ -59,6 +58,9 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d rm -rf $RPM_BUILD_ROOT %changelog +* Tue Nov 13 2007 Ivana Varekova - 409-2 +- remove which usage (#312591) + * Mon Oct 22 2007 Ivana Varekova - 409-1 - upgrade to 409 - remove useless/obsolete patches diff --git a/lesspipe.sh b/lesspipe.sh index 60ab1b6..0e66c33 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -29,7 +29,7 @@ lesspipe() { *.rpm) rpm -qpivl --changelog -- "$1" ;; *.cpi|*.cpio) cpio -itv < "$1" ;; *.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif) - if [ -x "`which identify`" ]; then + if [ -x /usr/bin/identify ]; then identify "$1" else echo "No identify available"