ubuntu's platform.dist() always returns debian lenny/sid
Bug #196526 reported by
Hein-PietervanBraam
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python |
Fix Released
|
Unknown
|
|||
python2.3 (Ubuntu) |
Won't Fix
|
Low
|
Unassigned | ||
python2.4 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
python2.5 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
python2.6 (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
python3.0 (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
ubuntu's python platform module does not support ubuntu, it currently tries to read /etc/*._release (bit more than that, but doesn't really matter) and finds debian, and returns debian lenny/sid.
I think some extra heuristics have to be added to the platform module to allow ubuntu to be detected, perhaps through lsb_release?
alternatively, an ubuntu_release file should be added and that used.
Changed in python2.5: | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Changed in python2.4: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in python2.3: | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in python: | |
status: | Unknown → New |
Changed in python2.6 (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in python3.0 (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in python: | |
status: | New → Fix Released |
To post a comment you must log in.
There is a bug report at bugs.python.org and a patch for python 2.5.
http:// bugs.python. org/issue1322