commit: fec9c553ad737a3fe6b5fae6f07b02d84ce6f7bc Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> AuthorDate: Mon Feb 6 11:49:53 2017 +0000 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org> CommitDate: Mon Feb 6 11:49:53 2017 +0000 URL: https://gitweb.gentoo.org/proj/postgresql/eselect.git/commit/?id=fec9c553
Remove useless reset action The reset action is usless as do_set calls do_unset if active_slot is something other than (none). postgresql.eselect | 16 ++-------------- 1 file 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...