Commits

burak  committed 20a2c10

Fix RT#70510 (jquelin, pjedwards)

  • Participants
  • Parent commits 68d6924

Comments (0)

Files changed (2)

 
 0.7900 Thu Jan  5 00:21:39 2012
     => Fix RT#72586 (mcholste)
+    => Fix RT#70510 (jquelin, pjedwards)
 
 0.7801 Sun Jul 31 00:10:35 2011
     => Added a diag section to unit test and some code to SPEC to disable

File lib/Sys/Info/Driver/Linux/OS.pm

     my $self = shift;
     return $self if $self->{OSVERSION};
     require Sys::Info::Driver::Linux::OS::Distribution;
-    my $distro     = Sys::Info::Driver::Linux::OS::Distribution->new;
-    my $osname     = $distro->name;
-    my $V          = $distro->version;
-    my $edition    = $distro->edition;
-    my $kernel     = $distro->kernel;
-    my $build      = $distro->build;
-    my $build_date = $distro->build_date;
+    my $distro       = Sys::Info::Driver::Linux::OS::Distribution->new;
+    my $osname       = $distro->name;
+    my $V            = $distro->version;
+    my $edition      = $distro->edition;
+    my $kernel       = $distro->kernel;
+    my $build        = $distro->build;
+    my $build_date   = $distro->build_date;
+    my $manufacturer = $distro->manufacturer || q{};
 
     $self->{OSVERSION} = {
         NAME             => $osname,
         LONGNAME_EDITION => q{}, # will be set below
         VERSION          => $V,
         KERNEL           => $kernel,
-        MANUFACTURER     => $distro->manufacturer,
+        MANUFACTURER     => $manufacturer,
         RAW              => {
             BUILD      => defined $build      ? $build      : 0,
             BUILD_DATE => defined $build_date ? $build_date : 0,