diff options
author | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-08-19 23:35:42 +0200 |
---|---|---|
committer | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-08-19 23:35:42 +0200 |
commit | 8795a2488f4f80e97a453dd3cea0ea21c4de442a (patch) | |
tree | e00a8c3ca5a362fcac08463905e8ea329ab1924c | |
parent | update action: --if-invalid option added (diff) | |
download | eselect-rust-8795a2488f4f80e97a453dd3cea0ea21c4de442a.tar.gz eselect-rust-8795a2488f4f80e97a453dd3cea0ea21c4de442a.tar.bz2 eselect-rust-8795a2488f4f80e97a453dd3cea0ea21c4de442a.zip |
fix unset action0.1_pre20140820
help and elisp-site-regen, see https://github.com/Heather/gentoo-rust/issues/29
-rw-r--r-- | src/modules/rust.eselect | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/rust.eselect b/src/modules/rust.eselect index 5f1a576..c744d30 100644 --- a/src/modules/rust.eselect +++ b/src/modules/rust.eselect @@ -117,6 +117,10 @@ unset_version() { remove_symlink "${EROOT}/${SITELISP}"/rust-mode remove_symlink "${EROOT}/${SITELISP}"/site-gentoo.d/50rust-mode-gentoo.el + if [[ -e "${EROOT}/${SITELISP}"/site-gentoo.el ]]; then + elisp-site-regen + fi + for i in after/syntax autoload ftdetect ftplugin indent plugin syntax; do remove_symlink "${EROOT}/${SITEVIM}/${i}/rust.vim" done @@ -245,7 +249,7 @@ describe_unset() { echo "Unset active rust version" } -describe_update_options() { +describe_unset_options() { echo "--if-invalid : Unset only if symlink is invalid (e.g. package was uninstalled)" } |