From: Matt Turner Date: Sun, 3 Mar 2019 05:44:12 +0000 (-0800) Subject: x11-apps/xinit: Only print postinst messages first time X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=78925d7a2cdac37e74219558419b862d81e6a9c5;p=gentoo.git x11-apps/xinit: Only print postinst messages first time Closes: https://bugs.gentoo.org/440454 Signed-off-by: Matt Turner --- diff --git a/x11-apps/xinit/xinit-1.4.0-r1.ebuild b/x11-apps/xinit/xinit-1.4.0-r1.ebuild index a8b0150bc16d..f8dedbb1ce77 100644 --- a/x11-apps/xinit/xinit-1.4.0-r1.ebuild +++ b/x11-apps/xinit/xinit-1.4.0-r1.ebuild @@ -56,12 +56,15 @@ src_install() { pkg_postinst() { xorg-2_pkg_postinst - ewarn "If you use startx to start X instead of a login manager like gdm/kdm," - ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or" - ewarn "any executable. When you run startx, it will run this as the login session." - ewarn "You can set this in a file in /etc/env.d/ for the entire system," - ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)." - ewarn "Here's an example of setting it for the whole system:" - ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession" - ewarn " env-update && source /etc/profile" + + if ! has_version 'x11-apps/xinit'; then + ewarn "If you use startx to start X instead of a login manager like gdm/kdm," + ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or" + ewarn "any executable. When you run startx, it will run this as the login session." + ewarn "You can set this in a file in /etc/env.d/ for the entire system," + ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)." + ewarn "Here's an example of setting it for the whole system:" + ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession" + ewarn " env-update && source /etc/profile" + fi }