Gentoo Archives: gentoo-dev

From: Patrice Clement <monsieurp@g.o>
To: gentoo-dev@l.g.o
Cc: vim@g.o
Subject: [gentoo-dev] [PATCH 2/3] vim-plugin.eclass: use Portage internal variables.
Date: Sat, 04 Nov 2017 21:49:32
Message-Id: 20171104214844.22218-3-monsieurp@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/3] vim-plugin.eclass: improvements. by Patrice Clement
1 Closes: https://bugs.gentoo.org/469400
2 ---
3 eclass/vim-plugin.eclass | 6 +++---
4 1 file changed, 3 insertions(+), 3 deletions(-)
5
6 diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
7 index a05cdb4520b..3c809768cf8 100644
8 --- a/eclass/vim-plugin.eclass
9 +++ b/eclass/vim-plugin.eclass
10 @@ -39,11 +39,11 @@ vim-plugin_src_install() {
11 ebegin "Fixing file permissions"
12 # Make sure perms are good
13 chmod -R a+rX "${S}" || die "chmod failed"
14 - find "${S}" -user 'portage' -exec chown root '{}' \; || die "chown failed"
15 + find "${S}" -user "${PORTAGE_USERNAME}" -exec chown root '{}' \; || die "chown failed"
16 if use userland_BSD || [[ ${CHOST} == *-darwin* ]] ; then
17 - find "${S}" -group 'portage' -exec chgrp wheel '{}' \; || die "chgrp failed"
18 + find "${S}" -group "${PORTAGE_GRPNAME}" -exec chgrp wheel '{}' \; || die "chgrp failed"
19 else
20 - find "${S}" -group 'portage' -exec chgrp root '{}' \; || die "chgrp failed"
21 + find "${S}" -group "${PORTAGE_GRPNAME}" -exec chgrp root '{}' \; || die "chgrp failed"
22 fi
23 eend $?
24 fi
25 --
26 2.13.6

Replies