From c34b00b7b402b199cc6b7db1a7d1d4547ef3b413 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 17 Oct 2012 23:37:20 -0700 Subject: [PATCH] ManifestTask: use null stdin when checking sig --- pym/portage/package/ebuild/_parallel_manifest/ManifestTask.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.26.2