From 13a9613bc60611c949badd532425ca6851a978ed Mon Sep 17 00:00:00 2001 From: Serge van Ginderachter Date: Fri, 3 May 2013 20:57:55 +0200 Subject: [PATCH] fix a bug in apt-repository where 'ppa' is used in a plain http://ppa. .... url --- library/packaging/apt_repository | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/apt_repository b/library/packaging/apt_repository index e6ecab35bbd..47b24c9e03c 100644 --- a/library/packaging/apt_repository +++ b/library/packaging/apt_repository @@ -103,7 +103,7 @@ def main(): state = module.params['state'] repo_url = repo - if 'ppa' in repo_url: + if 'ppa:' in repo_url and not 'http://' in repo_url: # looks like ppa:nginx/stable repo_url = repo.split(':')[1] elif len(repo_url.split(' ')) > 1: