commit:     4ecb6fb2b5a9012f44c6727509de2a3e77930fb7
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 18:45:38 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 18:46:07 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ecb6fb2

sys-apps/baselayout: live ebuild: add warning about path change

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-apps/baselayout/baselayout-9999.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/sys-apps/baselayout/baselayout-9999.ebuild 
b/sys-apps/baselayout/baselayout-9999.ebuild
index 20a7143a742..6bd0c0d4f70 100644
--- a/sys-apps/baselayout/baselayout-9999.ebuild
+++ b/sys-apps/baselayout/baselayout-9999.ebuild
@@ -245,10 +245,14 @@ pkg_postinst() {
        fi
 
        for x in ${REPLACING_VERSIONS}; do
-               if ! version_is_at_least 2.4 ${v}; then
+               if ! version_is_at_least 2.4 ${x}; then
                        ewarn "After updating ${EROOT}etc/profile, please run"
-                       ewarn "env-update and . /etc/profile"
-                       break
+                       ewarn "env-update && . /etc/profile"
+               fi
+
+               if ! version_is_at_least 2.5 ${x}; then
+                       ewarn "Please run env-update then log out and back in 
to"
+                       ewarn "update your path."
                fi
        done
 

Reply via email to