Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 890949 Details for
Bug 1092745
Make fedora-easy-karma ignore own updates
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Adds --ignore-own option
0001-Add-ignore-own-option.patch (text/plain), 2.25 KB, created by
Jamie Nguyen
on 2014-04-29 21:47:17 UTC
(
hide
)
Description:
Adds --ignore-own option
Filename:
MIME Type:
Creator:
Jamie Nguyen
Created:
2014-04-29 21:47:17 UTC
Size:
2.25 KB
patch
obsolete
>From e6b93448c3dfb9ad938f750908c7e8207850c537 Mon Sep 17 00:00:00 2001 >From: Jamie Nguyen <j@jamielinux.com> >Date: Tue, 29 Apr 2014 21:57:18 +0100 >Subject: [PATCH] Add --ignore-own option > >This allows the user to ignore updates that have been submitted by >themselves. This assumes that the user is running fedora-easy-karma with >the --fas-username option. >--- > fedora-easy-karma.py | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/fedora-easy-karma.py b/fedora-easy-karma.py >index 1906907..f759ce8 100755 >--- a/fedora-easy-karma.py >+++ b/fedora-easy-karma.py >@@ -244,6 +244,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("", "--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") >@@ -423,6 +424,10 @@ 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: >+ continue >+ > if update not in processed_updates and build in installed_testing_builds: > processed_updates.append(update) > >-- >1.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1092745
:
890945
|
890949
|
890961