diff options
author | Urs Fässler <urs.fassler@bbv.ch> | 2018-10-03 12:04:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-04 23:00:24 +0100 |
commit | 82f32d99f761c346015e1010038ca7e989b2d0c1 (patch) | |
tree | 40934f3d825736ed54cce5ced85c499db065c8ff /bitbake | |
parent | b907303b92f597d159d1057a9d47148a23f30219 (diff) | |
download | poky-82f32d99f761c346015e1010038ca7e989b2d0c1.tar.gz |
bitbake: fetch2/git: use correct check to decide if the shallow tarball should be unpacked
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.
(Bitbake rev: 086eddcf8c7520ff5c52ce2a11ca9bf5b5fe5d7e)
Signed-off-by: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 63c433a4aa..f13a25f99d 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -476,7 +476,7 @@ class Git(FetchMethod): | |||
476 | if os.path.exists(destdir): | 476 | if os.path.exists(destdir): |
477 | bb.utils.prunedir(destdir) | 477 | bb.utils.prunedir(destdir) |
478 | 478 | ||
479 | if ud.shallow and os.path.exists(ud.fullshallow) and self.need_update(ud, d): | 479 | if ud.shallow and os.path.exists(ud.fullshallow) and self.clonedir_need_update(ud, d): |
480 | bb.utils.mkdirhier(destdir) | 480 | bb.utils.mkdirhier(destdir) |
481 | runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=destdir) | 481 | runfetchcmd("tar -xzf %s" % ud.fullshallow, d, workdir=destdir) |
482 | else: | 482 | else: |