poky/bitbake/lib/bb/fetch2
Christopher Larson e3e88600ce bitbake: fetch/git: fix AttributeError in shallow extraction logic
This code checks to see if shallow is either disabled or the tarball is
missing, but the else block tries to print the tarball filename, and
this attribute doesn't exist at all when shallow is disabled. Handle the
two cases separately to give sane errors for both cases without the
exception:

    Exception: AttributeError: 'FetchData' object has no attribute 'fullshallow'

(Bitbake rev: bdbb558342ebb4e64384c9838d2485d9299d91a6)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-11-22 10:45:14 +00:00
..
__init__.py bitbake: fetch: Also export GIT_SSH environment variable 2018-11-07 23:08:55 +00:00
bzr.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
clearcase.py bitbake: fetch2: fix import error for Python 3.6.5 2018-05-29 21:07:46 +01:00
cvs.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
git.py bitbake: fetch/git: fix AttributeError in shallow extraction logic 2018-11-22 10:45:14 +00:00
gitannex.py bitbake: fetch/gitannex: add support for shallow mirror tarballs 2017-06-02 13:36:57 +01:00
gitsm.py bitbake: fetch2/gitsm.py: Fix the references when the module and path are different 2018-11-07 23:08:55 +00:00
hg.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
local.py bitbake: fetch/local: Drop FILESDIR 2017-04-05 23:20:03 +01:00
npm.py bitbake: fetch2/npm.py: Allow shrinkwrap resolved relative URL which startswith 'http' (e.g http-proxy) 2018-11-21 11:54:47 +00:00
osc.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
perforce.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
repo.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
s3.py bitbake: s3.py: Remove hardcoded aws 2017-03-30 10:42:18 +01: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: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
wget.py bitbake: fetch/wget: use with to ensure the response is closed 2017-11-21 13:06:45 +00:00