[TIMOB-14960] CLI: ti info does not display correct OS name and version on Red Hat Linux-based distros (Fedora, Centos)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-27T17:13:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0 |
Components | CLI |
Labels | module_cli, qe-closed-3.2.0, qe-manualtest |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-08-27T16:57:49.000+0000 |
Updated | 2014-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
Pull request: https://github.com/appcelerator/node-appc/pull/54
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"
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:
Closing.