Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14960] CLI: ti info does not display correct OS name and version on Red Hat Linux-based distros (Fedora, Centos)

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-08-27T17:13:25.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0
ComponentsCLI
Labelsmodule_cli, qe-closed-3.2.0, qe-manualtest
ReporterChris Barber
AssigneeChris Barber
Created2013-08-27T16:57:49.000+0000
Updated2014-08-07T17:08:43.000+0000

Description

When you run "ti info -t os" on a Red Hat Linux distro (or Fedora or Centos), it displays:
Operating System
  Name                      = GNU/Linux
  Version                   = 
  Architecture              = 64bit
  # CPUs                    = 1
  Memory                    = 2.0GB
Apparently Red Hat distros do not provide a /etc/lsb-release file, but do provide a /etc/system-release which does contain the correct info. Expected output should look like:
Operating System
  Name                      = Fedora
  Version                   = 19
  Architecture              = 64bit
  # CPUs                    = 1
  Memory                    = 2.0GB

Comments

  1. Chris Barber 2013-08-27

    Pull request: https://github.com/appcelerator/node-appc/pull/54
  2. Chris Barber 2013-08-27

    To test: 1) Install Fedora, Red Hat, or CentOS operating system 2) Install the master branch of the Titanium CLI 3) Install the timob-14960 branch of node-appc into the Titanium CLI's node-modules dir 4) Run "ti info -t os"
  3. Samuel Dowse 2013-11-19

    Verified fixed on: Fedora 19 Titanium Studio, build: 3.2.0.201311160316 Titanium SDK, build: 3.2.0.v20131118142443 CLI: 3.2.0-alpha Alloy: 1.3.0 ti info -t os produces:
    Operating System
         Name                        = Fedora
         Version                     = 19
         Architecture                = 64bit
         # CPUs                      = 2
         Memory                      = 1.9GB
       
    Closing.

JSON Source