x11-apps/xinit: Only print postinst messages first time
authorMatt Turner <mattst88@gentoo.org>
Sun, 3 Mar 2019 05:44:12 +0000 (21:44 -0800)
committerMatt Turner <mattst88@gentoo.org>
Sun, 3 Mar 2019 05:45:23 +0000 (21:45 -0800)
Closes: https://bugs.gentoo.org/440454
Signed-off-by: Matt Turner <mattst88@gentoo.org>
x11-apps/xinit/xinit-1.4.0-r1.ebuild

index a8b0150bc16d89b4db65ec0e5aafd9a581759b47..f8dedbb1ce77f5ba39062e396c8d6f26757f7a44 100644 (file)
@@ -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
 }