diff options
author | 2011-03-25 22:11:35 -0400 | |
---|---|---|
committer | 2011-03-25 22:11:35 -0400 | |
commit | 819c30395590a683b3e9d1e4fc5134fe2fbd7bf6 (patch) | |
tree | a8bb2974dfe2c28bd1ef1d9592bca0fcfec656c2 | |
parent | Localize variables. (diff) | |
download | eselect-819c30395590a683b3e9d1e4fc5134fe2fbd7bf6.tar.gz eselect-819c30395590a683b3e9d1e4fc5134fe2fbd7bf6.tar.bz2 eselect-819c30395590a683b3e9d1e4fc5134fe2fbd7bf6.zip |
Changed behavior of update(). It'll now both pick and set the default as being
active automatically. When a default is set already, it merely does a reset and
refreshes all of the links.
-rw-r--r-- | postgresql.eselect | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/postgresql.eselect b/postgresql.eselect index 39ea024..8e4a63a 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -253,13 +253,9 @@ do_update() { if [[ ${slots[@]} =~ ${ACTIVE_SLOT} ]] ; then do_reset else - # Default to the highest slot available. # best_version doesn't work here as pkg_postrm runs before the world # file is updated, thereby returning a false positive. do_set ${slots[$index-1]} - - # Remove active file because it isn't set by a user. - rm -f ${E_PATH}/active fi # Clean out the cruft |