From 2187c1fb1989906c7c7601c5ee6cb70dc47a9a14 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 27 Jan 2005 19:20:26 +0000 Subject: fix pipe hanging for large package descriptions (Logical change 1.195) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@833 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Redhat.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/Client/Redhat.py') diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py index 47e169afd..de0a33d23 100644 --- a/src/lib/Client/Redhat.py +++ b/src/lib/Client/Redhat.py @@ -90,6 +90,8 @@ class Redhat(Toolset): print "Can't install package, not enough data." return False instp = Popen4("rpm -qi %s-%s" % (entry.attrib['name'], entry.attrib['version'])) + while instp.poll() == -1: + instp.fromchild.read() istat = instp.wait()/256 if istat == 0: if entry.attrib.get('verify', 'true') == 'true': -- cgit v1.2.3-1-g7c22