mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bugs in install_gems when the distro is not detected
This commit is contained in:
parent
cbb3f33f6c
commit
6a8a802e55
@ -165,7 +165,8 @@ def install_dependencies(gems, distro)
|
||||
documentation.
|
||||
|
||||
Press enter to continue...
|
||||
EOT
|
||||
EOT
|
||||
STDIN.readline
|
||||
else
|
||||
puts "Distribution \"#{distro.first}\" detected."
|
||||
deps=get_dependencies(gems, distro.last[:dependencies])
|
||||
@ -240,7 +241,7 @@ packages_string=gems_list.join(' ')
|
||||
|
||||
prefix=""
|
||||
|
||||
if dist.last[:gem_env]
|
||||
if dist && dist.last[:gem_env]
|
||||
prefix=dist.last[:gem_env].collect do |name, value|
|
||||
"#{name}=\"#{value}\""
|
||||
end.join(' ')+' '
|
||||
|
Loading…
x
Reference in New Issue
Block a user