]> git.wh0rd.org - home.git/commitdiff
split out arch emails helper, and set default non-root uid/gid
authorMike Frysinger <vapier@gentoo.org>
Sat, 17 Dec 2011 19:38:32 +0000 (14:38 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:42 +0000 (15:36 -0400)
.profile.d/gentoo.sh

index f8500e2596f99de478e62b938a220668d5eab438..aa2a08b8818a3bd6b1cc4f87195e1ff0e67c5c4f 100644 (file)
@@ -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`