Bug 521869
| Summary: | Deprecation warnings in yum-arch | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Paul Howarth <paul> | ||||
| Component: | yum-arch | Assignee: | Remi Collet <fedora> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 11 | CC: | fedora, tim.lauridsen | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 2.2.2-8.fc11 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-10-15 22:36:31 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: |
|
||||||
I've already fix the "errors" but not the "warnings" Thanks for the patch (all seems ok) yum-arch-2.2.2-8.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/yum-arch-2.2.2-8.fc11 yum-arch-2.2.2-8.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-arch'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10007 yum-arch-2.2.2-8.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 360091 [details] Patch addressing deprecation warnings Description of problem: Deprecation warnings relating to gzip and sha usage. Version-Release number of selected component (if applicable): yum-arch-2.2.2-7 How reproducible: Always Steps to Reproduce: 1. Run "yum-arch ." in a directory with RPMs. Actual results: Output includes warnings like these: /usr/share/yum-arch/yum/pgpmsg.py:16: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import string, struct, time, cStringIO, base64, types, sha /usr/lib64/python2.6/gzip.py:117: DeprecationWarning: use the name attribute warnings.warn("use the name attribute", DeprecationWarning) Expected results: No such output. Additional info: Attached patch removes the warnings for me and still seems to generate the same header files as the original version. However, I'm not a native python speaker so I may have missed something.