bitbake: fetch2: Remove unneeded conditional

The condition will always evaluate to true and
thus is redundant.

(Bitbake rev: be1ee681e8a566564549068dcf90c95c36544815)

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paulo Neves
2022-09-20 13:45:53 +02:00
committed by Richard Purdie
parent ceefd2885b
commit a6b647af79

View File

@@ -567,13 +567,12 @@ class Git(FetchMethod):
source_found = False source_found = False
source_error = [] source_error = []
if not source_found: clonedir_is_up_to_date = not self.clonedir_need_update(ud, d)
clonedir_is_up_to_date = not self.clonedir_need_update(ud, d) if clonedir_is_up_to_date:
if clonedir_is_up_to_date: runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d)
runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d) source_found = True
source_found = True else:
else: source_error.append("clone directory not available or not up to date: " + ud.clonedir)
source_error.append("clone directory not available or not up to date: " + ud.clonedir)
if not source_found: if not source_found:
if ud.shallow: if ud.shallow: