From patchwork Thu May 28 14:18:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 2/3] git.py: LFS bitbake note should not be printed if need_lfs is not set. From: =?utf-8?q?Mauro_Queir=C3=B3s?= X-Patchwork-Id: 172929 Message-Id: <20200528141853.213890-2-maurofrqueiros@gmail.com> To: bitbake-devel@lists.openembedded.org Cc: Mauro Queiros Date: Thu, 28 May 2020 15:18:52 +0100 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. Signed-off-by: Mauro Queiros --- lib/bb/fetch2/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 4c7d388e..eab76a10 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -509,7 +509,7 @@ class Git(FetchMethod): if self._contains_lfs(ud, d, destdir): if need_lfs and not self._find_git_lfs(d): raise bb.fetch2.FetchError("Repository %s has LFS content, install git-lfs on host to download (or set lfs=0 to ignore it)" % (repourl)) - else: + elif not need_lfs: bb.note("Repository %s has LFS content but it is not being fetched" % (repourl)) if not ud.nocheckout: