diff options
author | Urs Fässler <urs.fassler@bbv.ch> | 2018-10-03 12:04:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-04 23:00:24 +0100 |
commit | b907303b92f597d159d1057a9d47148a23f30219 (patch) | |
tree | f4e6ea8b7d773bfc79e915c1ae59dafd384f0a3a /bitbake/lib/bb/fetch2/git.py | |
parent | 073c62cb56f3cd45d9ae28e0fcfc522be7480d4f (diff) | |
download | poky-b907303b92f597d159d1057a9d47148a23f30219.tar.gz |
bitbake: fetch2/git: prevent access to non-existing fullshallow tarball
(Bitbake rev: b7f00a8c11672a2ee0408e210fb174cda3384e3f)
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/lib/bb/fetch2/git.py')
-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 e46ea4893b..63c433a4aa 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 self.need_update(ud, d): | 479 | if ud.shallow and os.path.exists(ud.fullshallow) and self.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: |