From 3e9bcd351d91ffd2204df23d527f30f452bb0684 Mon Sep 17 00:00:00 2001 From: Sebastien Bocahu Date: Mon, 13 Aug 2012 19:23:53 +0200 Subject: [PATCH] Add support for Debian in apt_repository --- library/apt_repository | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/apt_repository b/library/apt_repository index 3fe7dceb8d..b495b7fed1 100755 --- a/library/apt_repository +++ b/library/apt_repository @@ -72,7 +72,7 @@ def main(): cmd = '%s %s' % (add_apt_repository, repo) - if float(platform.dist()[1]) >= 11.10: + if platform.dist()[0] == 'debian' or float(platform.dist()[1]) >= 11.10: cmd = cmd + ' -y' rc, out, err = _run(cmd)