Bug 521869 - Deprecation warnings in yum-arch
Summary: Deprecation warnings in yum-arch
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-arch
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Remi Collet
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-08 14:56 UTC by Paul Howarth
Modified: 2009-10-15 22:36 UTC (History)
2 users (show)

Fixed In Version: 2.2.2-8.fc11
Clone Of:
Environment:
Last Closed: 2009-10-15 22:36:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch addressing deprecation warnings (1.41 KB, patch)
2009-09-08 14:56 UTC, Paul Howarth
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.