diff options
| author | Julian Andres Klode <jak@debian.org> | 2012-07-30 13:23:53 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2012-07-30 13:23:53 +0200 |
| commit | f1b280f6e21d257411e63cbfdf6ccf0085689f9a (patch) | |
| tree | cf1e648da24ed5a925ca9c92608f1da66b6bc019 /apt | |
| parent | c6b89434b018c9b3ca3c13fb78bab20981fee6e6 (diff) | |
| download | python-apt-f1b280f6e21d257411e63cbfdf6ccf0085689f9a.tar.gz | |
apt/auth.py: Do not merge stdout and stderr (Closes: #678706)
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/auth.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apt/auth.py b/apt/auth.py index 5d4b1cd6..c52ec3a6 100644 --- a/apt/auth.py +++ b/apt/auth.py @@ -69,7 +69,7 @@ def _call_apt_key_script(*args, **kwargs): proc = subprocess.Popen(cmd, env=env, universal_newlines=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, - stderr=subprocess.STDOUT) + stderr=subprocess.PIPE) content = kwargs.get("stdin", None) if isinstance(content, unicode): @@ -77,12 +77,12 @@ def _call_apt_key_script(*args, **kwargs): output, stderr = proc.communicate(content) - assert stderr == None - if proc.returncode: raise SystemError("The apt-key script failed with return code %s:\n" - "%s\n%s" % (proc.returncode, " ".join(cmd), - output)) + "%s\n" + "stdout: %s\n" + "stderr: %s" % (proc.returncode, " ".join(cmd), + output,stderr)) return output.strip() finally: if conf is not None: |
