mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix distribution detection in apt_repository module, so it also work
on Mint as it work on Debian, fix #4587. PPAs are not supported however, since that's a Ubuntu specific feature and mint is detected as a generic distribution and use a different codename than the Ubuntu release it is based on, which mean that apt_repository cannot add detect and add the proper url without a better heuristic.
This commit is contained in:
parent
1d090b5b25
commit
19bb44288e
1 changed files with 2 additions and 1 deletions
|
@ -349,7 +349,8 @@ def main():
|
||||||
update_cache = module.params['update_cache']
|
update_cache = module.params['update_cache']
|
||||||
sourceslist = None
|
sourceslist = None
|
||||||
|
|
||||||
if isinstance(distro, aptsources.distro.DebianDistribution):
|
if isinstance(distro, aptsources.distro.DebianDistribution) or \
|
||||||
|
isinstance(distro, aptsources.distro.Distribution):
|
||||||
sourceslist = SourcesList()
|
sourceslist = SourcesList()
|
||||||
elif isinstance(distro, aptsources.distro.UbuntuDistribution):
|
elif isinstance(distro, aptsources.distro.UbuntuDistribution):
|
||||||
sourceslist = UbuntuSourcesList(add_ppa_signing_keys_callback=get_add_ppa_signing_key_callback(module))
|
sourceslist = UbuntuSourcesList(add_ppa_signing_keys_callback=get_add_ppa_signing_key_callback(module))
|
||||||
|
|
Loading…
Reference in a new issue