Commit aacb3afe by Sam Stephenson

Better error and progress messages

parent 4fbb207e
Binary packages Binary packages
--------------- ---------------
* Better error messages X Better error messages
* Show 'Downloading' and 'Installing' messages a la ruby-build X Show 'Downloading' and 'Installing' messages a la ruby-build
* Rewrite RbConfig::CONFIG['CC'] on install * Rewrite RbConfig::CONFIG['CC'] on install
* Patch rbx since the rewriter doesn't work there * Patch rbx since the rewriter doesn't work there
* rbenv-install should check for binary packages before building * rbenv-install should check for binary packages before building
...@@ -64,6 +64,7 @@ if [ -n "$check" ]; then ...@@ -64,6 +64,7 @@ if [ -n "$check" ]; then
} >&2 } >&2
else else
package_filename="${TMPDIR}/${package_name}.$$" package_filename="${TMPDIR}/${package_name}.$$"
echo "Downloading $package_url..." >&2
download "$package_url" "$package_filename" || { download "$package_url" "$package_filename" || {
echo "error: couldn't fetch package \`$package' ($package_url)" echo "error: couldn't fetch package \`$package' ($package_url)"
exit 1 exit 1
......
...@@ -37,5 +37,8 @@ fi ...@@ -37,5 +37,8 @@ fi
trap cleanup_packages SIGINT SIGTERM EXIT trap cleanup_packages SIGINT SIGTERM EXIT
package_root="$(ruby-package unpack "$package_file")" package_root="$(ruby-package unpack "$package_file")"
package_name="$(cat "${package_root}/metadata/package")"
echo "Installing ${package_name}..." >&2
"${package_root}/bin/ruby-package-install" "$destination" "${package_root}/bin/ruby-package-install" "$destination"
echo "Installed ${package_name} to ${destination}" >&2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment