Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 4025
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: richardc [...] unixbeard.net
Cc:
AdminCc:

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



Date: Mon, 6 Oct 2003 15:13:15 +0100
From: Richard Clamp <richardc [...] unixbeard.net>
To: bug-CPANPLUS [...] rt.cpan.org
Subject: Flag not cleared? Mislabelling things as failed.
This is a script generated from CPANPLUS 0.045 http://unixbeard.net/~richardc/cpanp_err In summary: install A B C D success A FAIL B success C success D reports: success A FAIL B FAIL C! FAIL D! Since C and D didn't actually fail it's odd to be told they did. By inspection I've tracked it to around line 286 of CPANPLUS::Backend: $modobj->status->install(!$flag); ### set the return value ### $href->{$mod} = $modobj->status->install; } } That's looping over all modules to be installed, but within the loop the $flag can only be set and is never cleared. Perhaps something as simple as: $modobj->status->install(!$flag); + $flag = 0; ### set the return value ### $href->{$mod} = $modobj->status->install; } } would remedy it but I'm not sure enough to make a real patch. -- Richard Clamp <richardc@unixbeard.net>
Subject: Re: [cpan #4025] Flag not cleared? Mislabelling things as failed.
From: Autrijus Tang <autrijus [...] autrijus.org>
To: bug-CPANPLUS [...] rt.cpan.org
Date: Tue, 07 Oct 2003 07:41:59 +0100
RT-Send-Cc:
?b 一, 2003-10-06 15:13, richardc@unixbeard.net via RT ?g?D?G Show quoted text
> That's looping over all modules to be installed, but within the loop > the $flag can only be set and is never cleared. Perhaps something as > simple as:
$flag is used later so we can't clear it, but I've fixed it in the -dist branch with a slightly different method. Can you try the http://p4.elixus.org/snap/cpanplus-dist.tar.gz snapshot, and see if it works for you? Thanks, /Autrijus/