summaryrefslogtreecommitdiffstats
path: root/yum-presto
diff options
context:
space:
mode:
authorJonathan Dieter <jdieter@gmail.com>2007-11-14 19:41:48 +0200
committerJonathan Dieter <jdieter@gmail.com>2007-11-14 19:41:48 +0200
commit538dd152ea16b5fe34942219f853925ade6c620c (patch)
tree5b74b0e9643d04463a71429684086dda351406d3 /yum-presto
parent6650411925bd107887f973852c7e7f5b2b8c3ae4 (diff)
downloadpresto-538dd152ea16b5fe34942219f853925ade6c620c.tar.gz
presto-538dd152ea16b5fe34942219f853925ade6c620c.tar.xz
presto-538dd152ea16b5fe34942219f853925ade6c620c.zip
Make sure we don't leave open file descriptors when we call applydeltarpm.
Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
Diffstat (limited to 'yum-presto')
-rw-r--r--yum-presto/presto.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yum-presto/presto.py b/yum-presto/presto.py
index 0c1355f..ebdef4d 100644
--- a/yum-presto/presto.py
+++ b/yum-presto/presto.py
@@ -46,13 +46,13 @@ pinfo = {}
def verifyDelta(sequence, arch):
if subprocess.call(["/usr/bin/applydeltarpm", "-a", arch,
- "-C", "-s", sequence]):
+ "-C", "-s", sequence], close_fds=True):
return False
return True
def applyDelta(deltarpmfile, newrpmfile, arch):
if subprocess.call(["/usr/bin/applydeltarpm", "-a", arch,
- deltarpmfile, newrpmfile]):
+ deltarpmfile, newrpmfile], close_fds=True):
return False
return True