summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-01-31 04:44:48 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-01-31 04:44:48 +0000
commit14ef312d2b750ecfe58ba89b8165780b87038c1a (patch)
tree89b14c22d01ffa57a0fd4a6e0bc2b1a68fe68115 /src/lib/Client
parent2a800dbfd1e847f7d9e6a455dc5a270adcbf069a (diff)
downloadbcfg2-14ef312d2b750ecfe58ba89b8165780b87038c1a.tar.gz
bcfg2-14ef312d2b750ecfe58ba89b8165780b87038c1a.tar.bz2
bcfg2-14ef312d2b750ecfe58ba89b8165780b87038c1a.zip
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
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Redhat.py5
1 files changed, 3 insertions, 2 deletions
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']: