[yum-cvs] yum/misc.py

Jeremy Katz katzj at linux.duke.edu
Thu Oct 11 14:53:24 UTC 2007


 yum/misc.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit e6cc168d42ab200796297dd579a19a9a757ebbfd
Author: Jeremy Katz <katzj at redhat.com>
Date:   Tue Oct 9 22:17:33 2007 -0400

    catch exception when uncompressing (#325771)

diff --git a/yum/misc.py b/yum/misc.py
index 7c710e2..40bdf83 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -348,7 +348,10 @@ def bunzipFile(source,dest):
     destination = open(dest, 'w')
 
     while True:
-        data = s_fn.read(1024000)
+        try:
+            data = s_fn.read(1024000)
+        except IOError:
+            break
         
         if not data: break
         destination.write(data)



More information about the Yum-cvs-commits mailing list