Project

Profile

Help

Issue #4476

pulp_rpm.handlers.rpm does not work with Python 2.4

Added by evgeni over 2 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.18.0
Platform Release:
2.19.0
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 49
Quarter:

Description

>>> import pulp_rpm.handlers.rpm
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/pulp_rpm/handlers/rpm.py", line 10, in ?
    distribution = platform.linux_distribution()[0].upper()
AttributeError: 'module' object has no attribute 'linux_distribution'

Associated revisions

Revision 09a6693b View on GitHub
Added by evgeni over 2 years ago

use platform.dist() on Python prior to 2.6

fixes #4476 https://pulp.plan.io/issues/4476

History

#2 Updated by ttereshc over 2 years ago

To bring compatibility back, platform.dist should be used for Python < 2.6 https://docs.python.org/2/library/platform.html#unix-platforms

#4 Updated by ttereshc over 2 years ago

  • Status changed from NEW to POST
  • Sprint set to Sprint 49

#5 Updated by evgeni over 2 years ago

  • Status changed from POST to MODIFIED

#6 Updated by ttereshc over 2 years ago

  • Platform Release set to 2.19.0

#7 Updated by ttereshc over 2 years ago

  • Sprint/Milestone set to 2.19.0

#8 Updated by ttereshc over 2 years ago

  • Status changed from MODIFIED to 5

#9 Updated by ttereshc over 2 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#10 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF