Actions
Issue #4476
closedpulp_rpm.handlers.rpm does not work with Python 2.4
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'
Updated by evgeni over 5 years ago
this affects 2.17 and newer as they all have https://github.com/pulp/pulp_rpm/commit/35e096cabf180f2d91baa6dde6a1f72d79d50773
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
Updated by evgeni over 5 years ago
pull-request: https://github.com/pulp/pulp_rpm/pull/1286
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
Updated by evgeni over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset 09a6693be2127acbddb47493bc31a304ddfdf882.
Updated by ttereshc over 5 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions
use platform.dist() on Python prior to 2.6
fixes #4476 https://pulp.plan.io/issues/4476