diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-01-16 18:18:13 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2011-01-16 18:18:13 +0000 |
commit | 0fc67cc3efccedc92e45752ab851cb2705c18c55 (patch) | |
tree | e4c34030934b63c2f0c5b3b5e9b629da7d523e3a /eclass | |
parent | old (diff) | |
download | gentoo-2-0fc67cc3efccedc92e45752ab851cb2705c18c55.tar.gz gentoo-2-0fc67cc3efccedc92e45752ab851cb2705c18c55.tar.bz2 gentoo-2-0fc67cc3efccedc92e45752ab851cb2705c18c55.zip |
Fix logic error, resulting in bug #351401
In Prefix there is no user Portage, even not when the user runs as root,
in which case Portage would also run as root. Result, never try to fix
anything when running Prefix.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/vim-plugin.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass index 67cc99b7a8a9..8513f7cd9f87 100644 --- a/eclass/vim-plugin.eclass +++ b/eclass/vim-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.25 2010/10/29 07:01:08 mduft Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.26 2011/01/16 18:18:13 grobian Exp $ # # This eclass simplifies installation of app-vim plugins into # /usr/share/vim/vimfiles. This is a version-independent directory @@ -23,7 +23,7 @@ vim-plugin_src_install() { has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}" local f - if use !prefix || [[ ${EUID} -eq 0 ]] ; then + if use !prefix && [[ ${EUID} -eq 0 ]] ; then ebegin "Fixing file permissions" # Make sure perms are good chmod -R a+rX "${S}" || die "chmod failed" |