Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 22893
Status: open
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: cbrink [...] brinkrods.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: CPAN dies when 'which' reports not found in FC5
Fedora Core 5 perl v5.8.8 built for i386-linux-thread-multi CPAN dies when 'which' returns 'not found in...'. Though it appears as if it should be a warn. My specific instance was the 'recent' command. 'which' could not find 'html2text'. If the 'die' on line 5761 was changed to 'warn' CPAN nicely reported 'lynx' or 'html2text' needed to be installed.
Subject: Re: [rt.cpan.org #22893] CPAN dies when 'which' reports not found in FC5
Date: Wed, 08 Nov 2006 07:58:17 -0500
To: bug-CPAN [...] rt.cpan.org
From: Michael G Schwern <schwern [...] gmail.com>
Christian Brink via RT wrote: Show quoted text
> CPAN dies when 'which' returns 'not found in...'. Though it appears as > if it should be a warn. > > My specific instance was the 'recent' command. 'which' could not find > 'html2text'. If the 'die' on line 5761 was changed to 'warn' CPAN nicely > reported 'lynx' or 'html2text' needed to be installed.
This would also have the handy side-effect of allowing CPAN.pm (or at least that part) to work on systems without which. Using File::Which, if available, would be preferred for portability reasons.
This is partially fixed in 1.88_79 the release candidate for the next stable release. I keep this open because I consider putting in a nicer fix than just eliminating "which".