From 14ef312d2b750ecfe58ba89b8165780b87038c1a Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 31 Jan 2005 04:44:48 +0000 Subject: fix popen spin (Logical change 1.196) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@837 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Redhat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib/Client/Redhat.py') diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py index de0a33d23..f0d6fc463 100644 --- a/src/lib/Client/Redhat.py +++ b/src/lib/Client/Redhat.py @@ -90,9 +90,10 @@ 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: + istat = instp.poll() + while istat == -1: instp.fromchild.read() - istat = instp.wait()/256 + istat = instp.poll() if istat == 0: if entry.attrib.get('verify', 'true') == 'true': if self.setup['quick']: -- cgit v1.2.3-1-g7c22