diff options
author | Till Maas <opensource@till.name> | 2013-05-27 19:05:55 +0200 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2013-05-27 19:05:55 +0200 |
commit | 408f8faab258f264e0d80246ccfe3e3c2467b305 (patch) | |
tree | 2f1f0145dab44244a0822a8bb07b3a25ca55511e | |
parent | 36efb33844b9bf32261f4a73736283ba46175d5c (diff) | |
download | fedora-easy-karma-408f8faab258f264e0d80246ccfe3e3c2467b305.tar.gz fedora-easy-karma-408f8faab258f264e0d80246ccfe3e3c2467b305.tar.xz fedora-easy-karma-408f8faab258f264e0d80246ccfe3e3c2467b305.zip |
Mention wiki page for detailed information
-rwxr-xr-x | fedora-easy-karma.py | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py index 2786ea3..bb50dd5 100755 --- a/fedora-easy-karma.py +++ b/fedora-easy-karma.py @@ -191,33 +191,38 @@ class FEK_helper(object): return ("\n%s" % subsequent_indent).join(output) +USAGE="""usage: %prog [options] [pattern, ..] +You will be asked for every package installed from updates-testing to provide +feedback using karma points. If patterns are provided, you will be only +prompted for updates related to packages or builds that match any of the +patterns. Possible wildcards are *, ?, [seq] and [!seq] as explained at +http://docs.python.org/library/fnmatch.html + +Possible values in the karma prompt: + -1,0 or 1: Assign the respective karma value to the update + i: Ignore the update in the future + Other inputs will skip the update. + +After assigning karma to the update, a comment needs to be provided, otherwise +the update will be skipped. + +Note: +<CTRL>-<D> on an empty prompt exits the program. +If you use a default comment, '<CTRL>-<X> <backspace>' can be used to delete the default comment to easily enter a custom one. + +For further documentation, please visit https://fedoraproject.org/wiki/Fedora_Easy_Karma + +The source can be found at +http://fedorapeople.org/gitweb?p=till/public_git/fedora-easy-karma.git;a=summary +Please send bug reports and feature requests to +'Till Maas <opensource@till.name>' +For patches please use 'git send-email'. +""" class FedoraEasyKarma(object): def __init__(self): - usage = ( - "usage: %prog [options] [pattern, ..] \n\n" - "You will be asked for every package installed from updates-testing to provide feedback using karma points. " - "If patterns are provided, you will be only prompted for updates related to packages or builds that match any " - "of the patterns. Possible wildcards are *, ?, [seq] and [!seq] as explained at http://docs.python.org/library/fnmatch.html\n" - "After selecting the karma points, you will be asked for a comment. An empty comment skips the update.\n\n" - "Possible karma points are:\n" - "-1 : Update breaks something or does not fix a bug it is supposed to\n" - " 0 : The update has not been tested much or at all\n" - " 1 : The update seems not to break anything new\n" - " i : Ignore the update in the future\n" - "All other inputs will skip the update.\n" - "You can use <CTRL>-<D> on an empty prompt to exit\n" - "If you use a default comment, '<CTRL>-<X> <backspace>' can be used to delete the default comment to easily enter a custom one.\n" - "\n" - "The source can be found at\n" - "http://fedorapeople.org/gitweb?p=till/public_git/fedora-easy-karma.git;a=summary\n" - "Please send bug reports and feature requests to\n" - "'Till Maas <opensource@till.name>'\n" - "For patches please use 'git send-email'." - ) - - usage = FEK_helper.wrap_paragraphs_prefix(usage, first_prefix="", width=80, extra_newline=False) + usage = FEK_helper.wrap_paragraphs_prefix(USAGE, first_prefix="", width=80, extra_newline=False) parser = OptionParser(usage=usage) parser.add_option("", "--bodhi-cached", dest="bodhi_cached", help="Use cached bodhi query", action="store_true", default=False) |