mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
smartpm: set noprogress for pycurl
Set NOPROGRESS for pycurl just as same as default operation in pycurl module itself. If set NOPROGRESS with 0 for pycurl, it causes dead lock issue of Python GIL when call smart library by python gui just like pygtk. (From OE-Core rev: 0d1f99fe1446edfb8864cbbc5a8b0059391c9bbc) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
Set NOPROGRESS for pycurl just as same as default operation in pycurl module itself.
|
||||
If set NOPROGRESS with 0 for pycurl, it causes dead lock issue of Python GIL when
|
||||
call smart library by python gui just like pygtk.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||
---
|
||||
diff -u smart-1.4.1/smart.orig/fetcher.py smart-1.4.1/smart/fetcher.py
|
||||
--- smart-1.4.1/smart.orig/fetcher.py 2014-07-15 16:42:19.240437080 +0800
|
||||
+++ smart-1.4.1/smart/fetcher.py 2014-07-15 17:02:37.812470289 +0800
|
||||
@@ -1720,7 +1720,7 @@
|
||||
handle.setopt(pycurl.OPT_FILETIME, 1)
|
||||
handle.setopt(pycurl.LOW_SPEED_LIMIT, 1)
|
||||
handle.setopt(pycurl.LOW_SPEED_TIME, SOCKETTIMEOUT)
|
||||
- handle.setopt(pycurl.NOPROGRESS, 0)
|
||||
+ handle.setopt(pycurl.NOPROGRESS, 1)
|
||||
handle.setopt(pycurl.PROGRESSFUNCTION, progress)
|
||||
handle.setopt(pycurl.WRITEDATA, local)
|
||||
handle.setopt(pycurl.FOLLOWLOCATION, 1)
|
||||
Reference in New Issue
Block a user