Menu

#98 Make dnf5 less verbose if it is not installed

v7.14
open
nobody
None
5
2026-02-15
2026-02-13
No

If dnf5 is not installed on the system it is unnecessarily verbose.

1 Attachments

Discussion

  • Frank Crawford

    Frank Crawford - 2026-02-14

    I half agree, the last 2 lines can be moved, although they also need to be surounded by a Debug level.

    However, the path to dnf5 is important if it fails to find dnf5, and so should not be after that test.

    However, and additional point is all these lines should not be seen unless you have debugging enabled, so what are you looking for?

     
  • Andrew Myers

    Andrew Myers - 2026-02-14

    I have debug set to 5 so that I can see all the tests that have been carried out.

    I am not sure that I see your point about the pat the dnf5. If the script fails to find dnf5, and it is installed, then the path set by the script must be wrong, so quoting it will be no help. The script would need to be changed so that the correct path is found from the beginning.

    Surely the same point would apply to several other scripts?

     
  • Frank Crawford

    Frank Crawford - 2026-02-15

    Your point on listing the value before the test is exactly why it is in that order. If it is set to a value and it is wrong, having it listed prior that test may help with the troubleshooting. In addition, if it is not actually set then tat will give you a different area to troubleshoot.

     
  • Andrew Myers

    Andrew Myers - 2026-02-15

    I see your point. Could we change the one line output to:
    print STDERR "\n\nDEBUG: Exiting DNF5 Filter - dnf not found at $pathto_dnf5\n\n";
    which is consistent with, for example, xntpd?

     
  • Frank Crawford

    Frank Crawford - 2026-02-15

    That sounds reasonable. I'll do an update something like that sometime this week.

     
  • Andrew Myers

    Andrew Myers - 2026-02-15

    Thank you

     

Log in to post a comment.

MongoDB Logo MongoDB