diff options
author | NP-Hardass <np.hardass@gmail.com> | 2017-03-27 16:57:30 -0400 |
---|---|---|
committer | NP-Hardass <np.hardass@gmail.com> | 2017-03-27 16:57:30 -0400 |
commit | e5c525d490883ff580bf29ffd1171784818baeed (patch) | |
tree | 874598404b4d00f2d61d438123932b0b5fbccec8 /wine.eselect | |
parent | wine.eselect: verify symlinks are valid (diff) | |
download | eselect-wine-e5c525d490883ff580bf29ffd1171784818baeed.tar.gz eselect-wine-e5c525d490883ff580bf29ffd1171784818baeed.tar.bz2 eselect-wine-e5c525d490883ff580bf29ffd1171784818baeed.zip |
wine.eselect: re-arrange code so less io calls are madev0.99_rc6
Diffstat (limited to 'wine.eselect')
-rw-r--r-- | wine.eselect | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/wine.eselect b/wine.eselect index 8bdd06a..158c279 100644 --- a/wine.eselect +++ b/wine.eselect @@ -730,9 +730,8 @@ remove_symlinks() { # remove entry from config file symlinks=$(list_rm_item "${symlink}" "${symlinks}") - - store_config "${CONFIG_DIR}/links/${v}" ${var} "${symlinks}" done + store_config "${CONFIG_DIR}/links/${v}" ${var} "${symlinks}" # remove set from config file symlink_vars=$(list_rm_item "${var}" "${symlink_vars}") @@ -788,6 +787,7 @@ set_symlinks() { set_dir_env local link + local links store_config "${CONFIG_DIR}/links/${v}" symlink_dirs "bin" store_config "${CONFIG_DIR}/links/${v}" "bin" "" @@ -799,9 +799,11 @@ set_symlinks() { write_warning_msg "Cleaning up" remove_symlinks ${v_arg} fi - append_config "${CONFIG_DIR}/links/${v}" "bin" "${link}" + links="${links} ${link}" done + store_config "${CONFIG_DIR}/links/${v}" "bin" "${links}" + links="" append_config "${CONFIG_DIR}/links/${v}" symlink_dirs "man" store_config "${CONFIG_DIR}/links/${v}" "man" "" for md in "${wine_man}"/*; do @@ -813,9 +815,10 @@ set_symlinks() { write_warning_msg "Cleaning up" remove_symlinks ${v_arg} fi - append_config "${CONFIG_DIR}/links/${v}" "man" "${link}" + links="${links} ${link}" done done + append_config "${CONFIG_DIR}/links/${v}" "man" "${links}" unset_dir_env |