mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
update: only get branch object once per branch
A minor optimisation - it's not going to change between layers so get it in the branch loop. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
a5a3c47b69
commit
a2dbda9469
|
@ -200,6 +200,7 @@ def main():
|
||||||
# they never get used during normal operation).
|
# they never get used during normal operation).
|
||||||
last_rev = {}
|
last_rev = {}
|
||||||
for branch in branches:
|
for branch in branches:
|
||||||
|
branchobj = utils.get_branch(branch)
|
||||||
for layer in layerquery:
|
for layer in layerquery:
|
||||||
layerupdate = LayerUpdate()
|
layerupdate = LayerUpdate()
|
||||||
layerupdate.update = update
|
layerupdate.update = update
|
||||||
|
@ -220,8 +221,6 @@ def main():
|
||||||
urldir = layer.get_fetch_dir()
|
urldir = layer.get_fetch_dir()
|
||||||
repodir = os.path.join(fetchdir, urldir)
|
repodir = os.path.join(fetchdir, urldir)
|
||||||
|
|
||||||
branchobj = utils.get_branch(branch)
|
|
||||||
|
|
||||||
if branchobj.update_environment:
|
if branchobj.update_environment:
|
||||||
cmdprefix = branchobj.update_environment.get_command()
|
cmdprefix = branchobj.update_environment.get_command()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user