From 1ae921a8f3ce0a856267cc58f3c218860d94eae8 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sun, 31 Aug 2014 17:08:12 +0200 Subject: Change --ignore-own to --no-ignore-own Also use the guessed/readed FAS username if none is provided. --- fedora-easy-karma.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py index 22a5903..2713273 100755 --- a/fedora-easy-karma.py +++ b/fedora-easy-karma.py @@ -245,7 +245,7 @@ class FedoraEasyKarma(object): parser.add_option("", "--default-comment", dest="default_comment", help="Default comment to use, default: %default", default="", metavar="COMMENT") parser.add_option("", "--default-karma", dest="default_karma", help="Default karma to use, default: %default", default="", metavar="KARMA") parser.add_option("", "--fas-username", dest="fas_username", help="FAS username", default=None) - parser.add_option("", "--ignore-own", dest="ignore_own", help="Ignore updates submitted by the current FAS username", action="store_true", default=False) + parser.add_option("", "--no-ignore-own", dest="ignore_own", help="Do not ignore own updates.", action="store_false", default=True) parser.add_option("", "--include-commented", dest="include_commented", help="Also ask for more comments on updates that already got a comment from you, this is enabled if patterns are provided", action="store_true", default=False) parser.add_option("", "--include-ignored", dest="include_ignored", help="Also ask for comments on updates that have been ignored previously.", action="store_true", default=False) parser.add_option("", "--installed-max-days", dest="installed_max_days", help="Only check packages installed within the last XX days, default: %default", metavar="DAYS", default=28, type="int") @@ -425,8 +425,8 @@ class FedoraEasyKarma(object): ignored_updates.append(update.title) continue - # Do not query for updates submitted by the current FAS username. - if self.options.ignore_own and update["submitter"] == self.options.fas_username: + # Ignore own updates + if self.options.ignore_own and update["submitter"] == fas_username: continue if update not in processed_updates and build in installed_testing_builds: -- cgit