mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
rrs_distros: ensure we only run distro processing once
We do not need to get the distro package lists for every layerbranch, just once. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
9d0e048ded
commit
549c5377db
|
@ -113,6 +113,7 @@ if __name__=="__main__":
|
|||
logger.debug("Starting recipe distros update ...")
|
||||
|
||||
origsyspath = sys.path
|
||||
pkglst_dir = None
|
||||
for maintplan in maintplans:
|
||||
for item in maintplan.maintenanceplanlayerbranch_set.all():
|
||||
layerbranch = item.layerbranch
|
||||
|
@ -127,6 +128,8 @@ if __name__=="__main__":
|
|||
with transaction.atomic():
|
||||
utils.setup_core_layer_sys_path(settings, layerbranch.branch.name)
|
||||
|
||||
if not pkglst_dir:
|
||||
# Only need to do this once
|
||||
from oe import distro_check
|
||||
logger.debug("Downloading distro's package information ...")
|
||||
distro_check.create_distro_packages_list(fetchdir, d)
|
||||
|
|
Loading…
Reference in New Issue
Block a user