1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #2911 from sergevanginderachter/apt-repo-ppa-bug

fix an idempotence bug in apt-repository where 'ppa' is used in a plain http://ppa. ....
This commit is contained in:
Michael DeHaan 2013-05-14 13:13:04 -07:00
commit d29d142a2d

View file

@ -103,7 +103,7 @@ def main():
state = module.params['state'] state = module.params['state']
repo_url = repo repo_url = repo
if 'ppa' in repo_url: if 'ppa:' in repo_url and not 'http://' in repo_url:
# looks like ppa:nginx/stable # looks like ppa:nginx/stable
repo_url = repo.split(':')[1] repo_url = repo.split(':')[1]
elif len(repo_url.split(' ')) > 1: elif len(repo_url.split(' ')) > 1: