fix a bug in apt-repository where 'ppa' is used in a plain http://ppa. .... url

This commit is contained in:
Serge van Ginderachter 2013-05-03 20:57:55 +02:00
parent c3547a2308
commit 13a9613bc6

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: