Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 167776

Summary: app-portage/g-cpan-0.1_rc2 fails when there's only one overlay in PORTDIR_OVERLAY
Product: Gentoo Linux Reporter: Nicolas Litchinko <nicolas>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: mcummings
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nicolas Litchinko 2007-02-20 18:49:35 UTC
* DEFINED OVERLAYS DON'T EXIST!

This probably happens with other versions too.

I was able to work around (fix?) this issue by editing line 297 of /usr/bin/g-cpan.

unless (keys %{$gcpan_run->{portage_bases}} > 1)
becomes
unless (keys %{$gcpan_run->{portage_bases}} >= 1)
and g-cpan won't exit early when you only have one overlay defined in PORTDIR_OVERLAY.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2007-02-26 10:18:06 UTC
fixed in svn. sorry about that, seeing this makes it feel even sillier to have missed earlier.