Archived
1
0

* Set the title to “check_yum”, the name of the program, and not to a description.

* Removed the author name from the functional code.
  This is surely not meant as unfriendely against Hari Sekhon who did as far as known most of the coding so far, but has been code contributed by other people, too, and I don’t want to add all their names to the output.
  The names of all known contributors is added in the license comment of the source code anyway.
* Contacted Hari Sekhon about the license, which he confirmed to be GPL version 2.
* Bumped the version to “0.8.0”.
This commit is contained in:
Christoph Anton Mitterer 2012-06-27 00:39:08 +02:00
parent f11ae00c26
commit a1993633dc

View File

@ -5,9 +5,8 @@
Can optionally alert on any available updates as well as just
security related updates"""
__author__ = "Hari Sekhon"
__title__ = "Nagios plugin to check the YUM package management system for package updates."
__version__ = "0.7.3"
__title__ = "check_yum"
__version__ = "0.8.0"
# Standard Nagios return codes
OK = 0
@ -376,8 +375,8 @@ class YumTester:
"""Starts tests and controls logic flow"""
check_yum_usable()
self.vprint(3, "%s - Version %s\nAuthor: %s\n" \
% (__title__, __version__, __author__))
self.vprint(3, "%s - Version %s\n" \
% (__title__, __version__))
self.validate_all_variables()
self.set_timeout()
@ -547,8 +546,8 @@ def main():
tester.warn_on_any_update = options.warn_on_any_update
if options.version:
print "%s - Version %s\nAuthor: %s\n" \
% (__title__, __version__, __author__)
print "%s - Version %s\n" \
% (__title__, __version__)
sys.exit(OK)
result, output = tester.test_yum_updates()