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 593002 Details for
Bug 639605
fedpkg update command ignores bugs field
[?]
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.
Collect bug lookup errors and keep going
bodhi-collect-bug-lookup-errors.patch (text/plain), 2.94 KB, created by
Cole Robinson
on 2012-06-19 16:16:19 UTC
(
hide
)
Description:
Collect bug lookup errors and keep going
Filename:
MIME Type:
Creator:
Cole Robinson
Created:
2012-06-19 16:16:19 UTC
Size:
2.94 KB
patch
obsolete
>diff --git a/bodhi/controllers.py b/bodhi/controllers.py >index 674c9ae..9d483a9 100644 >--- a/bodhi/controllers.py >+++ b/bodhi/controllers.py >@@ -1024,11 +1024,10 @@ class Root(controllers.RootController): > try: > original_bugs = [bug.bz_id for bug in update.bugs] > update.update_bugs(bugs) >- except xmlrpclib.Fault, f: >- log.exception(f) >+ except ValueError: > note.insert(0, "Unable to access one or more bugs: %s" % f.faultString) > except Exception, e: >- log.error("Unknown exception thrown from python-bugzilla!") >+ log.error("Unknown exception thrown while updating bug list!") > note.insert(0, "Unable to access one or more bugs. Exception: %s" % e) > > # If there are any security bugs, make sure this update is >diff --git a/bodhi/model.py b/bodhi/model.py >index 090457d..f5df03e 100644 >--- a/bodhi/model.py >+++ b/bodhi/model.py >@@ -758,25 +758,35 @@ class PackageUpdate(SQLObject): > if len(bug.updates) == 0: > log.debug("Destroying stray Bugzilla #%d" % bug.bz_id) > bug.destroySelf() >+ >+ errors = [] > for bug in bugs: > try: >- bug = int(bug) >- except ValueError: # bug alias >- bugzilla = Bugzilla.get_bz() >- bug = bugzilla.getbug(bug).bug_id >- try: >- bz = Bugzilla.byBz_id(bug) >- except SQLObjectNotFound: >- if fetchdetails: >+ try: >+ bug = int(bug) >+ except ValueError: # bug alias > bugzilla = Bugzilla.get_bz() >- newbug = bugzilla.getbug(bug) >- bz = Bugzilla(bz_id=newbug.bug_id) >- bz.fetch_details(newbug) >- bz.modified() >- else: >- bz = Bugzilla(bz_id=int(bug)) >- if bz not in self.bugs: >- self.addBugzilla(bz) >+ bug = bugzilla.getbug(bug).bug_id >+ try: >+ bz = Bugzilla.byBz_id(bug) >+ except SQLObjectNotFound: >+ if fetchdetails: >+ bugzilla = Bugzilla.get_bz() >+ newbug = bugzilla.getbug(bug) >+ bz = Bugzilla(bz_id=newbug.bug_id) >+ bz.fetch_details(newbug) >+ bz.modified() >+ else: >+ bz = Bugzilla(bz_id=int(bug)) >+ if bz not in self.bugs: >+ self.addBugzilla(bz) >+ except xmlrpclib.Fault, f: >+ # Try to keep going if we failed to lookup a bz >+ log.exception(f) >+ errors.append(f.faultString) >+ >+ if errors: >+ raise ValueError(" ".join(errors)) > > def update_cves(self, cves): > """
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 Raw
Actions:
View
Attachments on
bug 639605
: 593002