[yum-commits] Branch 'multi-downloader' - urlgrabber/grabber.py

zpavlas at osuosl.org zpavlas at osuosl.org
Fri Mar 23 15:24:48 UTC 2012


 urlgrabber/grabber.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 4cfad51928afe4a97428c61cc4daa6063db2ea4f
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Fri Mar 23 16:24:29 2012 +0100

    yum compatibility: raise KeyboardInterrupt instead of IOError(EINTR)

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 18c82e2..a4c770c 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -2242,6 +2242,9 @@ def parallel_wait(meter = 'text'):
             while host_con.get(key, 0) >= limit:
                 perform()
             start(opts, 1)
+    except IOError, e:
+        if e.errno != 4: raise
+        raise KeyboardInterrupt
 
     finally:
         dl.abort()


More information about the Yum-commits mailing list