generic-poky/bitbake/lib/bb/fetch2
Paul Eggleton f41740ee8e bitbake: fetch2/git: prevent recursion on getting latest revision
We call git ls-remote to get the latest revision from a git repository,
however by calling runfetchcmd() we can end up recursively running
git ls-remote a number of times with OE e.g. if ${SRCPV} is in PV, ${PV}
is in WORKDIR, and ${WORKDIR} is in PATH (as a result of recipe-specific
sysroots), our call to runfetchcmd() exports PATH so _lsremote() will
get called again - with the end result that we run git ls-remote 30
times in quick succession (!). Prevent that from happening by using a
guard variable and returning a dummy value if it's called recursively.

Fixes [YOCTO #11185].

(Bitbake rev: ff1ccd1db5d70b3fc9ad0d3e8f3d7b804c22bf36)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-03-27 20:23:19 +01:00
..
__init__.py bitbake: fetch2: pass --no-same-owner when extracting tar files compressed with 7-Zip 2017-03-04 23:18:46 +00:00
bzr.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
clearcase.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
cvs.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
git.py bitbake: fetch2/git: prevent recursion on getting latest revision 2017-03-27 20:23:19 +01:00
gitannex.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
gitsm.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
hg.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
local.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
npm.py bitbake: fetch2: remove last remaining usage of deprecated bb.data APIs 2017-03-04 23:18:46 +00:00
osc.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
perforce.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
repo.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
s3.py bitbake: fetch2: add initial Amazon AWS S3 fetcher 2017-03-03 00:19:37 +00:00
sftp.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
ssh.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
svn.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
wget.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00