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.
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.