summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorPaulo Neves <ptsneves@gmail.com>2022-09-20 13:45:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-21 20:20:22 +0100
commita6b647af79c1d8ed9b58a08d494aa169d1500d41 (patch)
treee6f6f7883eab3838e5c9b5dbbf504fec577de63d /bitbake/lib/bb/fetch2/git.py
parentceefd2885b8686dfe8c19b7df6ea85fb1eb67781 (diff)
downloadpoky-a6b647af79c1d8ed9b58a08d494aa169d1500d41.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 4534bd7580..17d4904927 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -567,13 +567,12 @@ class Git(FetchMethod):
567 source_found = False 567 source_found = False
568 source_error = [] 568 source_error = []
569 569
570 if not source_found: 570 clonedir_is_up_to_date = not self.clonedir_need_update(ud, d)
571 clonedir_is_up_to_date = not self.clonedir_need_update(ud, d) 571 if clonedir_is_up_to_date:
572 if clonedir_is_up_to_date: 572 runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d)
573 runfetchcmd("%s clone %s %s/ %s" % (ud.basecmd, ud.cloneflags, ud.clonedir, destdir), d) 573 source_found = True
574 source_found = True 574 else:
575 else: 575 source_error.append("clone directory not available or not up to date: " + ud.clonedir)
576 source_error.append("clone directory not available or not up to date: " + ud.clonedir)
577 576
578 if not source_found: 577 if not source_found:
579 if ud.shallow: 578 if ud.shallow: