Skip Menu |

This queue is for tickets about the Sys-Info-Driver-Linux CPAN distribution.

Report information
The Basics
Id: 70510
Status: resolved
Priority: 0/
Queue: Sys-Info-Driver-Linux

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

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



Subject: unknown manufacturer / edition for mageia distribution
$ perl -MSys::Info::Driver::Linux::OS::Distribution -E 'say Sys::Info::Driver::Linux::OS::Distribution->new->manufacturer' same for edition method. this is problematic since it leads to the following: Odd number of elements in anonymous hash at /usr/lib/perl5/vendor_perl/5.14.1/Sys/Info/Driver/Linux/OS.pm line 212.
On Fri Aug 26 09:01:48 2011, JQUELIN wrote: Show quoted text
> $ perl -MSys::Info::Driver::Linux::OS::Distribution -E 'say > Sys::Info::Driver::Linux::OS::Distribution->new->manufacturer' > > same for edition method. > > this is problematic since it leads to the following: > Odd number of elements in anonymous hash at > /usr/lib/perl5/vendor_perl/5.14.1/Sys/Info/Driver/Linux/OS.pm line
212. Ran into a similar problem on Red Hat Enterprise Linux Server release 5.7 (Tikanga) Sys/Info/Driver/Linux/OS.pm _populate_osversion() can have the line: MANUFACTURER => $distro->manufacturer, changed to MANUFACTURER => defined $distro->manufacturer ? $distro- Show quoted text
>manufacturer : q{},
to guard against odd number of elements in anonymous hash.
23 Kas 2011 Çrş, 14:31:15 tarihinde, cpan@pjedwards.co.uk yazdı: Show quoted text
> On Fri Aug 26 09:01:48 2011, JQUELIN wrote:
> > $ perl -MSys::Info::Driver::Linux::OS::Distribution -E 'say > > Sys::Info::Driver::Linux::OS::Distribution->new->manufacturer' > > > > same for edition method. > > > > this is problematic since it leads to the following: > > Odd number of elements in anonymous hash at > > /usr/lib/perl5/vendor_perl/5.14.1/Sys/Info/Driver/Linux/OS.pm line
> 212. > > Ran into a similar problem on Red Hat Enterprise Linux Server release > 5.7 (Tikanga) > > Sys/Info/Driver/Linux/OS.pm _populate_osversion() can have the line: > > MANUFACTURER => $distro->manufacturer, > > changed to > > MANUFACTURER => defined $distro->manufacturer ? $distro-
> >manufacturer : q{},
> > to guard against odd number of elements in anonymous hash. >
Hi, This is fixed in v0.7900 (which'll appear on mirrors shortly). Thanks, Burak