From 1b18197f00a0f8b230c11dd90b6f9799ac114d55 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Thu, 31 May 2012 19:18:46 +0200 Subject: Don't overwrite proc twice --- apt/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt/auth.py') diff --git a/apt/auth.py b/apt/auth.py index 97f9d578..d6b1d97f 100644 --- a/apt/auth.py +++ b/apt/auth.py @@ -153,8 +153,8 @@ def add_key(content, wait=True): stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) - proc = subprocess.Popen(cmd) proc.stdin.write(content) + proc.stdin.close() if wait: _wait_and_raise(proc) else: -- cgit v1.2.3