scripts/package in rvm-0.1.23 vs scripts/package in rvm-0.1.24

- old
+ new

@@ -84,11 +84,11 @@ configure="./config --prefix=$rvm_usr_path zlib no-asm no-krb5 shared" install_package } zlib() { - package="zlib" ; version="1.2.3" ; archive_format="tar.gz" + package="zlib" ; version="1.2.4" ; archive_format="tar.gz" package_url="http://www.zlib.net" install_package } ncurses() { @@ -142,15 +142,16 @@ sudo env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" ENABLE_OPTIMIZED=1 make install fi __rvm_pushpop } -if [[ ! -z "$library" ]] && is_a_function ${library} ; then - ${library} -else - if [[ ! -z "$library" ]] ; then +if [[ ! -z "$library" ]] ; then + if [[ " readline iconv curl openssl zlib ncurses pkgconfig gettext glib mono llvm " =~ "$library" ]] ; then + ${library} + else $rvm_scripts_path/log "error" "Package '${library}' is unknown." fi +else $rvm_scripts_path/log "info" "Usage: 'rvm package {install,uninstall} {openssl,zlib,readline,iconv,ncurses}'" exit 1 fi