diff options
author | Hans de Graaff <hans@degraaff.org> | 2009-04-18 22:43:15 +0200 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2009-04-18 22:43:15 +0200 |
commit | 2916de98ffb6ecd45c9f197ed59feea1307e3832 (patch) | |
tree | c9cf06b10fde00129a9dc68f65f1ac77b095f2ec /eselect-gem | |
parent | Initial version that seems to work more or less. (diff) | |
download | ruby-scripts-2916de98ffb6ecd45c9f197ed59feea1307e3832.tar.gz ruby-scripts-2916de98ffb6ecd45c9f197ed59feea1307e3832.tar.bz2 ruby-scripts-2916de98ffb6ecd45c9f197ed59feea1307e3832.zip |
Actually test the 'update' action and make it work.
Diffstat (limited to 'eselect-gem')
-rw-r--r-- | eselect-gem/gem.eselect | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/eselect-gem/gem.eselect b/eselect-gem/gem.eselect index 40bf7f5..a114f7e 100644 --- a/eselect-gem/gem.eselect +++ b/eselect-gem/gem.eselect @@ -69,7 +69,7 @@ set_symlinks() { } set_symlink_default() { - set_symlink 1 + set_symlinks ${1} 1 } set_symlink_by_slot() { @@ -186,19 +186,17 @@ describe_update() { do_update() { # Only set a symlink if there are any version of rails present - local target=1 - local targets=( $(find_targets ) ) + local gem=${1} + local target=${2} + local targets=( $(find_targets ${gem}) ) if [[ -z ${targets[@]} ]] ; then remove_symlinks fi - target=${targets[$(( ${target} - 1 ))]} - if [[ -f "${ROOT}/usr/bin/${target}" ]] ; then - set_symlink_default - fi + set_symlink_default ${gem} - do_show + do_show ${gem} } # vim: set ft=eselect : |