From fb4cb85a147a5325b874f769194b66cc4f116c4e Mon Sep 17 00:00:00 2001 From: Michael Seifert Date: Tue, 22 Mar 2016 18:38:04 +0100 Subject: [PATCH] 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 --- 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 c20323b55094..f7304091b1ed 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 } -- 2.26.2