Skip to content

Commit

Permalink
fixed Solaris internal references
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed Jul 4, 2010
1 parent 0be037d commit ed9643d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Devel/Platform/Info/Solaris.pm
Expand Up @@ -10,7 +10,7 @@ $VERSION = '0.03';

my %commands = (
'_uname1' => 'uname -a',
'_showrev' => 'showrev -a',
'_showrev' => 'showrev -a | grep -v "^Patch"',
'_release' => 'cat /etc/release',
'_isainfo' => '/usr/bin/isainfo -kv',
'kname' => 'uname -s',
Expand Down Expand Up @@ -40,10 +40,10 @@ sub get_info {

$self->{info}{osflag} = $^O;
$self->{info}{kernel} = lc($self->{info}{kname}) . '-' . $self->{info}{kvers};
$self->{info}{is32bit} = $self->{info}{_isainfo} !~ /64-bit/s ? 1 : 0;
$self->{info}{is64bit} = $self->{info}{_isainfo} =~ /64-bit/s ? 1 : 0;
$self->{info}{is32bit} = $self->{cmds}{_isainfo} !~ /64-bit/s ? 1 : 0;
$self->{info}{is64bit} = $self->{cmds}{_isainfo} =~ /64-bit/s ? 1 : 0;

($self->{info}{osname}) = $self->{info}{_release} =~ /^(\S+)/;
($self->{info}{osname}) = $self->{cmds}{_release} =~ /^(\S+)/;
$self->{info}{oslabel} = $self->{info}{osname};
$self->{info}{osvers} = $self->{info}{kname};
$self->{info}{osvers} =~ s/^5/2/; # a bit of a hack :(
Expand Down

0 comments on commit ed9643d

Please sign in to comment.