bugs in install_gems when the distro is not detected

(cherry picked from commit 6a8a802e55)
This commit is contained in:
Javi Fontan committed 2011-09-19 15:03:24 +02:00
1 parent 0364fd5f38
commit 6daba89b04
1 file changed
+3 -2
+3 -2
View File
@@ -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(' ')+' '