From 39efb5ff3bf4d9e34ffc4fcb74d4d6191a17149a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 19 Aug 2017 14:54:42 -0400 Subject: [PATCH] gentoo: tweak arch_emails --- .profile.d/gentoo.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.profile.d/gentoo.sh b/.profile.d/gentoo.sh index acf0fd3..950260c 100644 --- a/.profile.d/gentoo.sh +++ b/.profile.d/gentoo.sh @@ -45,13 +45,17 @@ arch_emails() { keys=$(sed -n '/^[[:space:]]*KEYWORD/{s:.*=::;s:"::g;p}' ${e}) for a in ${keys} ; do [[ ${a} != ~* ]] && continue - ret="${ret} ${a}" + case ${a} in + *-*) continue ;; + ~arm64|~m68k|~mips|~s390|~sh) continue ;; + ~*) ret="${ret} ${a}" ;; + esac done done else ret="$*" fi - printf '%s@gentoo.org ' ${ret//\~} + printf '%s@gentoo.org,' ${ret//\~} echo } stable_arch_emails() { -- 2.39.2