summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/python/python-smartpm_git.bb
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-30 01:19:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-01 14:14:28 +0100
commitdae4149009be722943cc7deec7f03e87b77ea59b (patch)
tree2d7abc08d60e1e13df5d529980ecd4f94969e1b5 /meta/recipes-devtools/python/python-smartpm_git.bb
parent68cbe684fe6d8fe3a44e47ed85837d09077df6d5 (diff)
downloadopenembedded-core-dae4149009be722943cc7deec7f03e87b77ea59b.tar.gz
openembedded-core-dae4149009be722943cc7deec7f03e87b77ea59b.tar.bz2
openembedded-core-dae4149009be722943cc7deec7f03e87b77ea59b.zip
smart:cache.py: getPackages() matches name + arch
It only matched name ony in the past, for example: smart install busybox (matched) but: smart install busybox@core2_64 (didn't match) The installation is very slow when no match since it would seach all the packages in the repo, and what we use mostly in oe-core is the second case, so the installation is very slow when install COMPLEMENTARY packages such as the task do_populate_sdk. This patch makes it match both. * Speed up MACHINE = "qemux86-64" - When multilib enabled: $ bitbake core-image-sato -cpopulate_sdk time: 6m5s -> 2m34s (Reduce 57% ) $ bitbake core-image-minimal -cpopulate_sdk time: 2m1s -> 1m26s (Reduce 28% ) $ bitbake core-image-sato-sdk time: 10m15s -> 7m12s (Reduce 29% ) - When multilib NOT enabled: $ bitbake core-image-sato -cpopulate_sdk time: 4m25s -> 2m28s (Reduce 44% ) [YOCTO #8389] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm_git.bb')
-rw-r--r--meta/recipes-devtools/python/python-smartpm_git.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm_git.bb b/meta/recipes-devtools/python/python-smartpm_git.bb
index 8b974b0c33..d6c378bcfd 100644
--- a/meta/recipes-devtools/python/python-smartpm_git.bb
+++ b/meta/recipes-devtools/python/python-smartpm_git.bb
@@ -23,6 +23,7 @@ SRC_URI = "\
file://smart-add-for-rpm-ignoresize-check.patch \
file://smart-already-installed-message.patch \
file://smart-set-noprogress-for-pycurl.patch \
+ file://smart-cache.py-getPackages-matches-name-version.patch \
"
SRCREV = "407a7eca766431257dcd1da15175cc36a1bb22d0"