From: Zac Medico Date: Thu, 18 Oct 2012 06:37:20 +0000 (-0700) Subject: ManifestTask: use null stdin when checking sig X-Git-Tag: v2.2.0_alpha141 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c34b00b7b402b199cc6b7db1a7d1d4547ef3b413;p=portage.git ManifestTask: use null stdin when checking sig --- diff --git a/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py b/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py index d923088f5..e2d023a8c 100644 --- a/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py +++ b/pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py @@ -60,10 +60,12 @@ class ManifestTask(CompositeTask): self._start_gpg_proc() def _check_sig_key(self): + null_fd = os.open('/dev/null', os.O_RDONLY) popen_proc = PopenProcess(proc=subprocess.Popen( ["gpg", "--verify", self._manifest_path], - stdout=subprocess.PIPE, stderr=subprocess.STDOUT), + stdin=null_fd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT), pipe_reader=PipeReader()) + os.close(null_fd) popen_proc.pipe_reader.input_files = { "producer" : popen_proc.proc.stdout} self._start_task(popen_proc, self._check_sig_key_exit)