New version. Tiny bug fix, Ubuntu based distros only.

The 3.0.13 system base feature had a small bug in the logic that was supposed to
get the version id from codename, the bug made it never work. This is only relevant
for Ubuntu based distros, so if you are on some other base like Debian or Arch, you
can ignore this one, 3.0.13 will work fine.

No other changes, this was mainly for Mint, and other Ubuntu derived distros in
the future.
This commit is contained in:
Harald Hope 2018-06-27 16:53:06 -07:00
parent 2d1585cdc1
commit ef5dbf1c3d
2 changed files with 24 additions and 4 deletions

8
inxi
View file

@ -31,8 +31,8 @@ use POSIX qw(uname strftime ttyname);
## INXI INFO ## ## INXI INFO ##
my $self_name='inxi'; my $self_name='inxi';
my $self_version='3.0.13'; my $self_version='3.0.14';
my $self_date='2018-06-23'; my $self_date='2018-06-27';
my $self_patch='00'; my $self_patch='00';
## END INXI INFO ## ## END INXI INFO ##
@ -15762,7 +15762,8 @@ sub get_os_release {
# Mint is using UBUNTU_CODENAME without ID data. # Mint is using UBUNTU_CODENAME without ID data.
sub ubuntu_id { sub ubuntu_id {
eval $start if $b_log; eval $start if $b_log;
my ($codename) = lc(@_); my ($codename) = @_;
$codename = lc($codename);
my ($id) = (''); my ($id) = ('');
my %codenames = ( my %codenames = (
'cosmic' => '18.10', 'cosmic' => '18.10',
@ -15785,7 +15786,6 @@ sub ubuntu_id {
return $id; return $id;
} }
} }
sub get_gcc_data { sub get_gcc_data {
eval $start if $b_log; eval $start if $b_log;
my ($gcc,@data,@gccs,@temp); my ($gcc,@data,@gccs,@temp);

View file

@ -1,3 +1,23 @@
=====================================================================================
Version: 3.0.14
Patch Version: 00
Script Date: 2018-06-27
-----------------------------------
Changes:
-----------------------------------
New version. Tiny bug fix, Ubuntu based distros only.
The 3.0.13 system base feature had a small bug in the logic that was supposed to
get the version id from codename, the bug made it never work. This is only relevant
for Ubuntu based distros, so if you are on some other base like Debian or Arch, you
can ignore this one, 3.0.13 will work fine.
No other changes, this was mainly for Mint, and other Ubuntu derived distros in
the future.
-----------------------------------
-- Harald Hope - Wed, 27 Jun 2018 16:50:30 -0700
===================================================================================== =====================================================================================
Version: 3.0.13 Version: 3.0.13
Patch Version: 00 Patch Version: 00