|Summary:||net-dns/dnssec-tools-1.14: some elog messages should only be shown for the first install.|
|Component:||Current packages||Assignee:||Michael Weber (RETIRED) <xmw>|
|Package list:||Runtime testing required:||---|
|Bug Depends on:|
Description poletti.marco 2012-10-31 10:58:59 UTC
Disclaimer: this bug has been filed in a semi-automated manner. When emerging the package net-dns/dnssec-tools-1.14, the following elog messages are displayed: * Please run 'dtinitconf' in order to set up the required * /etc/dnssec-tools/dnssec-tools.conf file * DNSSEC Validator has been split into net-dns/dnsval Such messages should only be displayed when the package is a new install. These situations can be checked in the ebuild as follows: if ! has_version 'net-dns/dnssec-tools'; then See the tracker bug 440214 for more details.
Comment 1 Michael Weber (RETIRED) 2012-10-31 17:05:34 UTC
This doesn't test for previously installed, configured, but removed versions with remaining config files.
Comment 2 poletti.marco 2012-10-31 17:09:05 UTC
? I don't understand your comment, sorry.
Comment 3 poletti.marco 2012-10-31 21:15:16 UTC
@ Michael Weber: You posted a comment related to this bug in the tracker bug. I reply here so that I don't spam the tracker bug. > It would make sense to test, if the config file is missing. > > An `! has_version net-dns/dnssec-tools` does not test for the presence or > absence of an config-file, just if it was presently installed. So you test > is wrong. I know that the test does not check for the config file. My suggestion was to no longer display the warning after the first install, assuming that the config file was already set up. However, if it's possible to check for the config file itself as you mentioned, that would be a better check IMHO.