diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2017-02-06 06:49:53 -0500 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2017-02-06 06:49:53 -0500 |
commit | fec9c553ad737a3fe6b5fae6f07b02d84ce6f7bc (patch) | |
tree | b49a3aa7881bc398082121945adf46dc5b34441c | |
parent | Eliminate some noise (diff) | |
download | eselect-fec9c553ad737a3fe6b5fae6f07b02d84ce6f7bc.tar.gz eselect-fec9c553ad737a3fe6b5fae6f07b02d84ce6f7bc.tar.bz2 eselect-fec9c553ad737a3fe6b5fae6f07b02d84ce6f7bc.zip |
Remove useless reset action
The reset action is usless as do_set calls do_unset if active_slot is
something other than (none).
-rw-r--r-- | postgresql.eselect | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/postgresql.eselect b/postgresql.eselect index 67f7b74..83db02f 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -328,18 +328,6 @@ do_unset() { done } -### Reset Action ### -describe_reset() { - echo "Recreate symbolic links for currently active slot." -} - -do_reset() { - local slot=$(active_slot) - [[ ${slot} == "(none)" ]] && die -q "No active slot to reset." - do_unset ${slot} - do_set ${slot} -} - ### Update Action ### describe_update() { echo "Refreshes all symbolic links managed by this module" @@ -390,9 +378,9 @@ do_update() { local slots=($(get_slots)) if [[ ${slots[@]} =~ ${active_slot} ]] ; then - # If active_slot is in the slots list, do a reset as the installation + # If active_slot is in the slots list, set it again as the installation # may have changed. - do_reset + do_set ${active_slot} elif [[ ${#slots[@]} -ne 0 ]] ; then # If $slots is not empty but ${active_slot} is set, the active_slot # must have been unmerged and its links need to be cleaned before... |