PluginManager/PluginRepositoryDialog.py

changeset 5755
83fe98028532
parent 5739
a870f5f03baa
child 5854
be976799b8c0
--- a/PluginManager/PluginRepositoryDialog.py	Sat Jun 03 15:39:13 2017 +0200
+++ b/PluginManager/PluginRepositoryDialog.py	Tue Jun 06 19:52:41 2017 +0200
@@ -510,7 +510,13 @@
             return
         
         self.__downloadIODevice.open(QIODevice.WriteOnly)
-        self.__downloadIODevice.write(reply.readAll())
+        # read data in chunks
+        chunkSize = 64 * 1024 * 1024
+        while True:
+            data = reply.read(chunkSize)
+            if data is None or len(data) == 0:
+                break
+            self.__downloadIODevice.write(data)
         self.__downloadIODevice.close()
         if QFile.exists(self.__downloadFileName):
             QFile.remove(self.__downloadFileName)

eric ide

mercurial