Project

Profile

Help

Issue #4476

pulp_rpm.handlers.rpm does not work with Python 2.4

Added by evgeni 9 months ago. Updated 7 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
2.18.0
Platform Release:
2.19.0
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 49

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 9 months ago

use platform.dist() on Python prior to 2.6

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

History

#1 Updated by evgeni 9 months ago

#2 Updated by ttereshc 9 months 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 9 months ago

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

#5 Updated by evgeni 9 months ago

  • Status changed from POST to MODIFIED

#6 Updated by ttereshc 8 months ago

  • Platform Release set to 2.19.0

#7 Updated by ttereshc 8 months ago

  • Sprint/Milestone set to 2.19.0

#8 Updated by ttereshc 8 months ago

  • Status changed from MODIFIED to ON_QA

#9 Updated by ttereshc 8 months ago

  • Status changed from ON_QA to CLOSED - CURRENTRELEASE

#10 Updated by bmbouter 7 months ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF