From: Mike Frysinger Date: Sat, 17 Dec 2011 19:38:32 +0000 (-0500) Subject: split out arch emails helper, and set default non-root uid/gid X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8ef7abb48f49081f7a30ac043f2a7e18d74bdf35;p=home.git split out arch emails helper, and set default non-root uid/gid --- 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`