rrs/tools/rrs_upstream_history.py: Disable threads due to new tinfoil API

The new tinfoil API don't support pythreads so set to 1 while
tinfoil have support.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2017-01-06 10:38:41 -06:00
parent 81ddfcbeff
commit c576874628

View File

@ -173,7 +173,10 @@ if __name__=="__main__":
from oe.utils import ThreadedPool from oe.utils import ThreadedPool
import multiprocessing import multiprocessing
nproc = min(multiprocessing.cpu_count(), len(recipes)) #nproc = min(multiprocessing.cpu_count(), len(recipes))
# XXX: The new tinfoil API don't support pythreads so
# set to 1 while tinfoil have support.
nproc = 1
pool = ThreadedPool(nproc, len(recipes)) pool = ThreadedPool(nproc, len(recipes))
result = [] result = []