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 881515 Details for
Bug 1083287
[RFE][PATCH] Add locking around yum operations
[?]
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]
Simple improvement to logging
0001-Improve-logging-for-missing-srpms.patch (text/plain), 1.89 KB, created by
Ralph Bean
on 2014-04-01 20:04:21 UTC
(
hide
)
Description:
Simple improvement to logging
Filename:
MIME Type:
Creator:
Ralph Bean
Created:
2014-04-01 20:04:21 UTC
Size:
1.89 KB
patch
obsolete
>From 6fe40eb1705857af8ab4463365929d37b3f1e9af Mon Sep 17 00:00:00 2001 >From: Ralph Bean <rbean@redhat.com> >Date: Tue, 1 Apr 2014 15:48:59 -0400 >Subject: [PATCH 1/2] Improve logging for missing srpms. > >--- > src/pypungi/__init__.py | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > >diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py >index e719f1a..b28a41e 100644 >--- a/src/pypungi/__init__.py >+++ b/src/pypungi/__init__.py >@@ -22,6 +22,7 @@ import shutil > import sys > import gzip > import pypungi.util >+import pprint > import logging > import urlgrabber.progress > import subprocess >@@ -857,16 +858,29 @@ class Pungi(pypungi.PungiBase): > self.bin_by_src = {} > self.logger.info("Generating source <-> binary package mappings") > #(dummy1, everything, dummy2) = yum.packages.parsePackages(self.all_pkgs, ['*'], pkgdict=self.pkg_refs.copy()) >+ failed = [] > for po in self.all_pkgs: > if is_source(po): > continue >- srpmpo = self.get_srpm_po(po) >+ try: >+ srpmpo = self.get_srpm_po(po) >+ except RuntimeError: >+ failed.append(po.sourcerpm) >+ continue >+ > self.src_by_bin[po] = srpmpo > if self.bin_by_src.has_key(srpmpo): > self.bin_by_src[srpmpo].append(po) > else: > self.bin_by_src[srpmpo] = [po] > >+ if failed: >+ self.logger.info("The following srpms could not be found: %s" % ( >+ pprint.pformat(list(sorted(failed))))) >+ self.logger.info("Couldn't find %i of %i srpms." % ( >+ len(failed), len(self.src_by_bin))) >+ raise RuntimeError("Could not find all srpms.") >+ > def add_srpms(self, po_list=None): > """Cycle through the list of package objects and > find the sourcerpm for them. Requires yum still >-- >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 1083287
: 881515 |
881516