aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/tests/fetch.py
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2018-11-21 23:14:07 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-22 10:45:07 +0000
commitbdbb558342ebb4e64384c9838d2485d9299d91a6 (patch)
tree6af0c9fdc63bc3a9acd97df72b357a1d90ffb5f5 /lib/bb/tests/fetch.py
parentf2106a3a767542359fdde238abcf5fe35ab3a144 (diff)
downloadbitbake-bdbb558342ebb4e64384c9838d2485d9299d91a6.tar.gz
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' Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests/fetch.py')
0 files changed, 0 insertions, 0 deletions