summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/auth.py2
1 files changed, 1 insertions, 1 deletions
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: