diff options
Diffstat (limited to 'postgresql.eselect')
-rw-r--r-- | postgresql.eselect | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/postgresql.eselect b/postgresql.eselect index 83db02f..d7229e5 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -382,11 +382,8 @@ do_update() { # may have changed. 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... - [[ ${active_slot} != "(none)" ]] && do_unset ${active_slot} - - # Setting the highest slot available. + # If $slots is not empty and active_slot is not in the list, set the + # highest slot available. do_set ${slots[-1]} elif [[ ${active_slot} != "(none)" ]] ; then # If slots is empty, but active_slot still has a value, an unset must |