1
0
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:
Javi Fontan 2011-07-21 16:17:09 +02:00
parent 9074723543
commit 94fef691c7

View File

@ -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