Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 440552

Summary: app-portage/gentoolkit-0.3.0.6-r3: some elog messages should only be shown when upgrading from an old enough package.
Product: Gentoo Linux Reporter: poletti.marco
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443, 440214    

Description poletti.marco 2012-10-31 11:29:22 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package app-portage/gentoolkit-0.3.0.6-r3, the following elog messages are displayed:

 * glsa-check since gentoolkit 0.3 has modified some output,
 * options and default behavior. The list of injected GLSAs
 * has moved to /var/lib/portage/glsa_injected, please
 * run 'glsa-check -p affected' before copying the existing checkfile.

Such messages should only be displayed when the package is upgraded from an old enough package (and possibly for new installs).
These situations can be checked in the ebuild as follows:

if has_version '<app-portage/gentoolkit-1.0'; then

Or, if the message should also be displayed for new installs:

if !has_version 'app-portage/gentoolkit' || has_version '<app-portage/gentoolkit-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Paul Varner (RETIRED) gentoo-dev 2012-10-31 15:17:43 UTC
The message is already removed from the gentoolkit-9999 ebuild and will be removed from the ebuild on the next release.
Comment 2 Paul Varner (RETIRED) gentoo-dev 2012-11-06 17:31:10 UTC
Fixed with the gentoolkit-0.3.0.7 ebuild.