sys-apps/portage: make sync-depth message conditional

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
Zac Medico
2017-02-12 17:01:19 -08:00
parent 6e78139033
commit bbc7b4b290

View File

@@ -237,6 +237,12 @@ pkg_preinst() {
USERSYNC_UPGRADE=false
REPOS_CONF_UPGRADE=false
fi
if has_version ">=${CATEGORY}/${PN}-2.3.1" && \
has_version "<${CATEGORY}/${PN}-2.3.3"; then
SYNC_DEPTH_UPGRADE=true
else
SYNC_DEPTH_UPGRADE=false
fi
}
get_ownership() {
@@ -357,9 +363,11 @@ pkg_postinst() {
fi
fi
ewarn "Please note that this release no longer respects sync-depth for"
ewarn "git repositories. There have been too many problems and"
ewarn "performance issues. See bugs 552814, 559008"
if ${SYNC_DEPTH_UPGRADE}; then
ewarn "Please note that this release no longer respects sync-depth for"
ewarn "git repositories. There have been too many problems and"
ewarn "performance issues. See bugs 552814, 559008"
fi
einfo ""
einfo "This release of portage NO LONGER contains the repoman code base."
einfo "Repoman has its own ebuild and release package."