Project

Profile

Help

Issue #4476

closed

pulp_rpm.handlers.rpm does not work with Python 2.4

Added by evgeni over 5 years ago. Updated over 5 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'
Actions #1

Updated by evgeni over 5 years ago

Actions #2

Updated by ttereshc over 5 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

Actions #4

Updated by ttereshc over 5 years ago

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

Added by evgeni over 5 years ago

Revision 09a6693b | View on GitHub

use platform.dist() on Python prior to 2.6

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

Actions #5

Updated by evgeni over 5 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by ttereshc over 5 years ago

  • Platform Release set to 2.19.0
Actions #7

Updated by ttereshc over 5 years ago

  • Sprint/Milestone set to 2.19.0
Actions #8

Updated by ttereshc over 5 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by ttereshc over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #10

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF