diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-10 00:43:02 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-10 00:43:02 +0000 |
commit | a5332b59346f7cbf0fdbd148b54aa8a84aaf8190 (patch) | |
tree | e6d8d3589fcd01fbc3f1286185639163daa81424 /eclass/vim-plugin.eclass | |
parent | fceeaf01a28ee71065cf3798b70b77d3bc4ef199 (diff) |
gentoo resync : 10.11.2017
Diffstat (limited to 'eclass/vim-plugin.eclass')
-rw-r--r-- | eclass/vim-plugin.eclass | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass index abe9c7b3661b..a0ba714f6e6e 100644 --- a/eclass/vim-plugin.eclass +++ b/eclass/vim-plugin.eclass @@ -35,19 +35,6 @@ vim-plugin_src_install() { has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}" local f - if use !prefix && [[ ${EUID} -eq 0 ]] ; then - ebegin "Fixing file permissions" - # Make sure perms are good - chmod -R a+rX "${S}" || die "chmod failed" - find "${S}" -user 'portage' -exec chown root '{}' \; || die "chown failed" - if use userland_BSD || [[ ${CHOST} == *-darwin* ]] ; then - find "${S}" -group 'portage' -exec chgrp wheel '{}' \; || die "chgrp failed" - else - find "${S}" -group 'portage' -exec chgrp root '{}' \; || die "chgrp failed" - fi - eend $? - fi - # When globbing, if nothing exists, the shell literally returns the glob # pattern. So turn on nullglob and extglob options to avoid this. eshopts_push -s extglob @@ -85,8 +72,8 @@ vim-plugin_src_install() { mv "${S}" "${ED}"/usr/share/vim/vimfiles || die \ "couldn't move ${S} to ${ED}/usr/share/vim/vimfiles" - # Fix remaining bad permissions - chmod -R -x+X "${ED}"/usr/share/vim/vimfiles/ || die "chmod failed" + # Set permissions + fperms -R a+rX /usr/share/vim/vimfiles } # @FUNCTION: vim-plugin_pkg_postinst |