mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #743: correctly detects missing lsb_release
This commit is contained in:
parent
9074723543
commit
94fef691c7
@ -105,9 +105,17 @@ def get_gems(packages)
|
||||
end
|
||||
|
||||
def detect_distro
|
||||
lsb_info=`lsb_release -a`
|
||||
if $?!=0 && false
|
||||
STDERR.puts("lsb_release command not found")
|
||||
begin
|
||||
lsb_info=`lsb_release -a`
|
||||
rescue
|
||||
end
|
||||
|
||||
if $?.exitstatus!=0
|
||||
STDERR.puts(<<-EOT.unindent(12))
|
||||
lsb_release command not found. If you are using a RedHat based
|
||||
distribution install redhat-lsb
|
||||
|
||||
EOT
|
||||
return nil
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user