diff options
| author | Sebastian Heinlein <devel@glatzor.de> | 2012-05-31 19:18:46 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <devel@glatzor.de> | 2012-05-31 19:18:46 +0200 |
| commit | 1b18197f00a0f8b230c11dd90b6f9799ac114d55 (patch) | |
| tree | c222a8c1cf23a0ec5e134f380a766de476082cff | |
| parent | 2fa1eb3cfd05e981e1ab6daf2589f8d6e92c4bf6 (diff) | |
| download | python-apt-1b18197f00a0f8b230c11dd90b6f9799ac114d55.tar.gz | |
Don't overwrite proc twice
| -rw-r--r-- | apt/auth.py | 2 |
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: |
