touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #55262
[Bug 1414229] Re: python apt reporting Mint as generic distro, not as Ubuntu type distro
For future reference this is what is used:
def get_distro(id=None, codename=None, description=None, release=None):
"""
Check the currently used distribution and return the corresponding
distriubtion class that supports distro specific features.
If no paramter are given the distro will be auto detected via
a call to lsb-release
"""
# make testing easier
if not (id and codename and description and release):
result = _lsb_release()
id = result['Distributor ID']
codename = result['Codename']
description = result['Description']
release = result['Release']
if id == "Ubuntu":
return UbuntuDistribution(id, codename, description, release)
elif id == "Debian":
return DebianDistribution(id, codename, description, release)
else:
return Distribution(id, codename, description, release)
** Changed in: python-apt (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1414229
Title:
python apt reporting Mint as generic distro, not as Ubuntu type
distro
Status in python-apt package in Ubuntu:
Incomplete
Bug description:
Mint Rebecca, reproduce:
python
>>import aptsources.distro
>>distro = aptsources.distro.get_distro()
>>print distro
<aptsources.distro.Distribution object at 0x7f4c22051c10>
vs
<aptsources.distro.UbuntuDistribution object at 0x7f8fe050ad10>
on a Trusty.
This becomes a huge issue when it comes to porting Ansible roles from Ubuntu to Mint, since PPAs do not work. Reference:
https://github.com/ansible/ansible/issues/4587
https://github.com/ansible/ansible/issues/9383
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1414229/+subscriptions