summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Queirós <maurofrqueiros@gmail.com>2020-05-29 11:06:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-04 13:28:16 +0100
commit3f8b8f8bcafa6d37b89c9e193be1326332366dab (patch)
treefa0b7b6539a403a1c46ce4fb7094ed230d1d9eb8
parent8051b79733842aed8f9e839669760be478afe569 (diff)
downloadpoky-3f8b8f8bcafa6d37b89c9e193be1326332366dab.tar.gz
bitbake: git.py: LFS bitbake note should not be printed if need_lfs is not set.
The message "Repository %s has LFS content but it is not being fetched" was being printed, even when Git-LFS was available and "lfs=1" was set. In those situations, we want to fetch LFS content, so that message would not make sense. (Bitbake rev: 45028dfda5a29a34ab408cb3f11d72ae17963340) Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 4c7d388e16..eab76a10ad 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -509,7 +509,7 @@ class Git(FetchMethod):
509 if self._contains_lfs(ud, d, destdir): 509 if self._contains_lfs(ud, d, destdir):
510 if need_lfs and not self._find_git_lfs(d): 510 if need_lfs and not self._find_git_lfs(d):
511 raise bb.fetch2.FetchError("Repository %s has LFS content, install git-lfs on host to download (or set lfs=0 to ignore it)" % (repourl)) 511 raise bb.fetch2.FetchError("Repository %s has LFS content, install git-lfs on host to download (or set lfs=0 to ignore it)" % (repourl))
512 else: 512 elif not need_lfs:
513 bb.note("Repository %s has LFS content but it is not being fetched" % (repourl)) 513 bb.note("Repository %s has LFS content but it is not being fetched" % (repourl))
514 514
515 if not ud.nocheckout: 515 if not ud.nocheckout: