Bug 494436 - fix rhnpush warnings on f11/python-2.6
Summary: fix rhnpush warnings on f11/python-2.6
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 0.6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Pradeep Kilambi
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space06
TreeView+ depends on / blocked
 
Reported: 2009-04-06 20:55 UTC by Pradeep Kilambi
Modified: 2009-09-10 12:05 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-10 12:05:49 UTC
Embargoed:


Attachments (Terms of Use)

Description Pradeep Kilambi 2009-04-06 20:55:13 UTC
Description of problem:

rhnpush uses some modules that are deprecated in python-2.6. Also warns a runtimeerror. Though this does'nt the functionality of rhnpush itself, we need to clean this up so it works clean for python-2.6+ and also older versions.  

$ rhnpush --server http://rlx-2-22.rhndev.redhat.com/APP --user admin --pass redhat *.rpm -vvvvvv
/usr/share/rhn/rhnpush/uploadLib2.py:19: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Connecting to http://rlx-2-22.rhndev.redhat.com/APP
url is http://rlx-2-22.rhndev.redhat.com/PACKAGE-PUSH
Result codes: 200 OK
Computing md5sum and package Info .This may take sometime ...
Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.AttributeError'> ignored
Package rhnlib-2.5.10-1.fc10.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package rhnlib-2.5.10-1.fc10.noarch.rpm
Using POST request
Package rhnpush-0.4.6-1.fc10.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package rhnpush-0.4.6-1.fc10.noarch.rpm
Using POST request

Comment 1 Pradeep Kilambi 2009-08-07 13:45:02 UTC
This is fixed on sha256 branch.. I just need to merge the changes to master without including the package db changes..

Comment 2 Miroslav Suchý 2009-09-10 12:05:49 UTC
Spacewalk 0.6 released


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