summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-03-15 08:32:54 +0100
committerUlrich Müller <ulm@gentoo.org>2014-03-15 08:32:54 +0100
commit9b769e26cad727078b46efa9404f5b20d60e5fdf (patch)
tree851e1c0bbbd3b6e5f99930bf4a998a5926b9d9fb /app-editors/emacs-xwidget
parentCall eselect in postinst phase if this is the selected version. (diff)
downloademacs-9b769e26cad727078b46efa9404f5b20d60e5fdf.tar.gz
emacs-9b769e26cad727078b46efa9404f5b20d60e5fdf.tar.bz2
emacs-9b769e26cad727078b46efa9404f5b20d60e5fdf.zip
Merge changes from emacs-vcs.
Package-Manager: portage-2.2.8-r1
Diffstat (limited to 'app-editors/emacs-xwidget')
-rw-r--r--app-editors/emacs-xwidget/emacs-xwidget-24.3.9999.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/app-editors/emacs-xwidget/emacs-xwidget-24.3.9999.ebuild b/app-editors/emacs-xwidget/emacs-xwidget-24.3.9999.ebuild
index ffe8915..40e6eaa 100644
--- a/app-editors/emacs-xwidget/emacs-xwidget-24.3.9999.ebuild
+++ b/app-editors/emacs-xwidget/emacs-xwidget-24.3.9999.ebuild
@@ -365,6 +365,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