[bitbake-devel] [PATCH 3/7] fetch2/git: use correct check to decide if the shallow tarball should be unpacked
Urs Fässler
urs.fassler at bbv.ch
Wed Oct 3 12:04:07 UTC 2018
The shallow_tarball check is never true due a check on the caller side.
The tarball check is not related to the code on the caller side.
Signed-off-by: Urs Fässler <urs.fassler at bbv.ch>
Signed-off-by: Pascal Bach <pascal.bach at siemens.com>
---
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 63c433a4..f13a25f9 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -476,7 +476,7 @@ class Git(FetchMethod):
if os.path.exists(destdir):
bb.utils.prunedir(destdir)
- if ud.shallow and os.path.exists(ud.fullshallow) and self.need_update(ud, d):
+ if ud.shallow and os.path.exists(ud.fullshallow) and self.clonedir_need_update(ud, d):
bb.utils.mkdirhier(destdir)
runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=destdir)
else:
--
2.19.0
More information about the bitbake-devel
mailing list