Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440588 - app-misc/screen-4.0.3-r5: some elog messages should only be shown when upgrading from an old enough package.
Summary: app-misc/screen-4.0.3-r5: some elog messages should only be shown when upgrad...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: first-time-messages
  Show dependency tree
 
Reported: 2012-10-31 11:29 UTC by poletti.marco
Modified: 2014-03-10 21:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description poletti.marco 2012-10-31 11:29:41 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package app-misc/screen-4.0.3-r5, the following elog messages are displayed:

 * Some dangerous key bindings have been removed or changed to more safe values.
 * We enable some xterm hacks in our default screenrc, which might break some
 * applications. Please check /etc/screenrc for information on these changes.

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-misc/screen-1.0'; then

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

if !has_version 'app-misc/screen' || has_version '<app-misc/screen-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Sven Wegener gentoo-dev 2014-03-10 21:22:01 UTC
I'm using REPLACING_VERSIONS from EAPI-4 for checking new installs.