mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-18 19:02:53 +09:00
bugs in install_gems when the distro is not detected
(cherry picked from commit 6a8a802e55)
This commit is contained in:
1 parent
0364fd5f38
commit
6daba89b04
1 file changed
+3
-2
@@ -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(' ')+' '
|
||||
|
||||
Reference in new issue
Block a user