Bug 190961
Summary: | YumEx 1.0.0 crashed | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Georg F. Bolz <linux> | ||||||
Component: | yumex | Assignee: | Tim Lauridsen <tim.lauridsen> | ||||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 5 | CC: | dzrudy, katzj | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i586 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-08-10 08:08:15 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Georg F. Bolz
2006-05-07 13:35:25 UTC
Created attachment 128708 [details]
Message from YumEx crash
assiging to yumex I look like a problem downloading a rpm header, i will take a deeper look. I dont think you will get this error is you retry, but it should be handled in a better way by yumex. This isn't necessarily yumex bug. Yumex received return code 2 from buildTransaction() which means that everythig went good, but there is a call to downloadHeader() in resolveDeps (belonging to yum) which throws an exception on failure without returnig error code. Yum should handle downloadHeader() with try/except and return relevant error code to calling functions. We could workaround this in Yumex but I think it would be better to improve error handling in yum, so we can rely more on error codes in the future. Dawid, can you point to where in the code you think this should be fixed? Created attachment 128914 [details]
depsolve patch
I have attached patch against depsolve.py in yum 2.6.1 that would pass the
error code up to calling functions. It's a rough patch, not a final solution,
since I didn't test it (I'm at work right now) but it should show what I meant
:-)
I have added added a exception handler in the process_one method, so this kind of errors get catched in the same ways as when doing a normal package processing. I dont solve the problem but makes yumex behave better when this kind of error occours. |