summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-03-15 08:31:58 +0100
committerUlrich Müller <ulm@gentoo.org>2014-03-15 08:31:58 +0100
commit82b2cc278b816b354947e3c80d749974c6d0d294 (patch)
tree50126acb5f1ae95b1309e2b9697cc76dc7c086dd /app-editors
parentMerge changes from emacs-vcs. (diff)
downloademacs-82b2cc278b816b354947e3c80d749974c6d0d294.tar.gz
emacs-82b2cc278b816b354947e3c80d749974c6d0d294.tar.bz2
emacs-82b2cc278b816b354947e3c80d749974c6d0d294.zip
Call eselect in postinst phase if this is the selected version.
Package-Manager: portage-2.2.8-r1
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild b/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild
index 1c1fa09..5f6b179 100644
--- a/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild
+++ b/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild
@@ -350,6 +350,9 @@ pkg_postinst() {
# force an update of the emacs symlink for the livecd/dvd,
# because some microemacs packages set it with USE=livecd
eselect emacs update
+ elif [[ $(readlink "${EROOT}"/usr/bin/emacs) = ${EMACS_SUFFIX} ]]; then
+ # refresh symlinks in case any installed files have changed
+ eselect emacs set ${EMACS_SUFFIX}
else
eselect emacs update ifunset
fi