Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: jdhedden [...] cpan.org
Cc: imacat [...] cpan.org
AdminCc:

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



Subject: Bad $VERSION in CPANPLUS::Dist::Base
In CPANPLUS v0.84, CPANPLUS::Dist::Base had an explicit version number of 0.01. In v0.86, the $VERSION for CPANPLUS::Dist::Base is computed using: $VERSION = $CPANPLUS::Internals::VERSION = $CPANPLUS::Internals::VERSION; Aside from the fact that I don't understand the redundant assignment, this doesn't work and leads to CPAN assigning 'undef' to this. As a result, after upgrading to 0.86, CPAN will then tell you to "ugraded" back to 0.84: Package namespace installed latest in CPAN file CPANPLUS::Dist::Base undef 0.01 KANE/CPANPLUS-0.84.tar.gz Perhaps you need something like this instead: $VERSION = eval 'use CPANPLUS::Internals; $CPANPLUS::Internals::VERSION';
Subject: Re: [rt.cpan.org #45496] Bad $VERSION in CPANPLUS::Dist::Base
Date: Mon, 27 Apr 2009 23:06:51 +0200
To: bug-CPANPLUS [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
Hi Jerry, On Apr 27, 2009, at 10:55 PM, Jerry D. Hedden via RT wrote: Show quoted text
> In CPANPLUS v0.84, CPANPLUS::Dist::Base had an explicit version number > of 0.01. In v0.86, the $VERSION for CPANPLUS::Dist::Base is > computed using: > > $VERSION = $CPANPLUS::Internals::VERSION = > $CPANPLUS::Internals::VERSION;
All the versions in CPANPLUS modules, except for the ones used directly by end-users, are computed like this. The fact that Base had an individual version number was a bug. Show quoted text
> Aside from the fact that I don't understand the redundant assignment,
It's to silence the pesky 'variable blah only used once' warning. Show quoted text
> this doesn't work and leads to CPAN assigning 'undef' to this. As a > result, after upgrading to 0.86, CPAN will then tell you to "ugraded" > back to 0.84: > Package namespace installed latest in CPAN file > CPANPLUS::Dist::Base undef 0.01 KANE/ > CPANPLUS-0.84.tar.gz > > Perhaps you need something like this instead: > > $VERSION = eval 'use CPANPLUS::Internals; > $CPANPLUS::Internals::VERSION';
I'm assuming you're referring to the pause indexer. I see your point and I think something like that could work. I'll check with andreas. Thanks, -- Jos Boumans 'Real programmers use "cat > a.out"'
Andreas fixed the indexer.