From 8ef7abb48f49081f7a30ac043f2a7e18d74bdf35 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 17 Dec 2011 14:38:32 -0500 Subject: [PATCH] split out arch emails helper, and set default non-root uid/gid --- .profile.d/gentoo.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index f8500e2..aa2a08b 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -138,6 +138,9 @@ arch_emails() { printf '%s@gentoo.org ' ${ret//\~} echo } +stable_arch_emails() { + arch_emails "$@" | sed -r -e 's:([^ ]*-[^ ]*|mips)@[^ ]*::g' +} eget_maintainer() { local f=${1:-metadata.xml} local maintainer=$(xml sel -t -v pkgmetadata/herd $f) @@ -168,7 +171,7 @@ submit_bug_stable() { local cat=$(basename $(dirname $(pwd))) local pkg=${1%.ebuild} local ebuild=${pkg}.ebuild - local cc=$(arch_emails ${ebuild} | sed -r -e 's:([^ ]*-[^ ]*|mips)@[^ ]*::g') + local cc=$(stable_arch_emails ${ebuild}) if [[ -z ${cc} ]] ; then echo "Unable to read ebuild '${ebuild}'" return 1 @@ -209,3 +212,6 @@ _erit() { } erstable() { _erit stable "$@" ; } erlove() { _erit love "$@" ; } + +export PORTAGE_INST_UID=${UID} +export PORTAGE_INST_GID=`id -g` -- 2.39.2