commit:     fb4cb85a147a5325b874f769194b66cc4f116c4e
Author:     Michael Seifert <mseifert <AT> error-reports <DOT> org>
AuthorDate: Tue Mar 22 17:38:04 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Mar 30 12:03:27 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb4cb85a

dev-util/buildbot: Version migration elog message not displayed on fresh 
install.

Hides the elog notification about migrating to a new version of buildbot, if
there was no previous version installed.

Closes: https://github.com/gentoo/gentoo/pull/1027

Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 dev-util/buildbot/buildbot-0.8.12-r2.ebuild | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/dev-util/buildbot/buildbot-0.8.12-r2.ebuild 
b/dev-util/buildbot/buildbot-0.8.12-r2.ebuild
index c20323b..f7304091 100644
--- a/dev-util/buildbot/buildbot-0.8.12-r2.ebuild
+++ b/dev-util/buildbot/buildbot-0.8.12-r2.ebuild
@@ -91,10 +91,13 @@ src_install() {
 
 pkg_postinst() {
        readme.gentoo_print_elog
-       elog
-       elog "Upstream recommends the following when upgrading:"
-       elog "Each time you install a new version of Buildbot, you should run 
the"
-       elog "\"buildbot upgrade-master\" command on each of your pre-existing 
build masters."
-       elog "This will add files and fix (or at least detect) 
incompatibilities between"
-       elog "your old config and the new code."
+
+       if [[ -n ${REPLACING_VERSIONS} ]]; then
+               elog
+               elog "Upstream recommends the following when upgrading:"
+               elog "Each time you install a new version of Buildbot, you 
should run the"
+               elog "\"buildbot upgrade-master\" command on each of your 
pre-existing build masters."
+               elog "This will add files and fix (or at least detect) 
incompatibilities between"
+               elog "your old config and the new code."
+       fi
 }

Reply via email to