Bug 521869

Summary: Deprecation warnings in yum-arch
Product: [Fedora] Fedora Reporter: Paul Howarth <paul>
Component: yum-archAssignee: Remi Collet <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: 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:
Description Flags
Patch addressing deprecation warnings none

Description Paul Howarth 2009-09-08 14:56:26 UTC
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.

Comment 1 Remi Collet 2009-09-26 14:15:08 UTC
I've already fix the "errors" but not the "warnings"
Thanks for the patch (all seems ok)

Comment 2 Fedora Update System 2009-09-26 14:18:51 UTC
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

Comment 3 Fedora Update System 2009-09-29 14:27:50 UTC
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

Comment 4 Fedora Update System 2009-10-15 22:36:27 UTC
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.