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 627505 Details for
Bug 866526
component name is wrongly parsed if sourcerpm name contains "-"
[?]
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]
a proposed patch
python-meh-0.12-corretly-parse-component-name.patch (text/plain), 1.02 KB, created by
Jakub Filak
on 2012-10-15 14:52:50 UTC
(
hide
)
Description:
a proposed patch
Filename:
MIME Type:
Creator:
Jakub Filak
Created:
2012-10-15 14:52:50 UTC
Size:
1.02 KB
patch
obsolete
>--- python-meh-0.12.orig/meh/dump.py 2012-10-15 16:13:40.431569955 +0200 >+++ python-meh-0.12/meh/dump.py 2012-10-15 16:16:42.082651555 +0200 >@@ -143,7 +143,20 @@ > "{0}".format(file_)) > package = "{0}-{1}-{2}.{3}".format(header["name"], header["version"], > header["release"], header["arch"]) >- component = header["sourcerpm"].split("-")[0] >+ # cuts the name from the NVR format: foo-blah-2.8.8-2.fc17.src.rpm >+ name_end = len(header["sourcerpm"]) >+ try: >+ name_end = header["sourcerpm"].rindex('-') >+ try: >+ name_end = header["sourcerpm"][:name_end].rindex('-') >+ except ValueError as e: >+ # expected exception >+ pass >+ except ValueError as e: >+ # expected exception >+ pass >+ >+ component = header["sourcerpm"][:name_end] > > return (package, component) >
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 866526
: 627505