summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2024-10-26 02:39:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-28 14:08:33 +0000
commitdd9d183621d583331cd17c7ea4c6dd7cc350e8aa (patch)
tree2ac0e17ee584b2de00379a60133a6763a99a10ab /bitbake/lib/bb/fetch2/git.py
parent5bce38fbaea0a7d1228740e2cb313957c914cfdf (diff)
downloadpoky-dd9d183621d583331cd17c7ea4c6dd7cc350e8aa.tar.gz
bitbake: git: Clean shallow mirror tarball
Fixed: BB_GIT_SHALLOW = "1" BB_GENERATE_SHALLOW_TARBALLS = "1" $ bitbake utfcpp -cfetch && bitbake utfcpp -ccleanall The downloads/gitsmshallow_github.com.nemtrif.*.tar.gz won't be cleaned without this fix. (Bitbake rev: bab7a8970a0237a9d24217685a595e76a1336c07) Signed-off-by: Robert Yang <liezhi.yang@windriver.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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 5b678827ed..0ea55e139d 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -727,6 +727,11 @@ class Git(FetchMethod):
727 clonedir = os.path.realpath(ud.localpath) 727 clonedir = os.path.realpath(ud.localpath)
728 to_remove.append(clonedir) 728 to_remove.append(clonedir)
729 729
730 # Remove shallow mirror tarball
731 if ud.shallow:
732 to_remove.append(ud.fullshallow)
733 to_remove.append(ud.fullshallow + ".done")
734
730 for r in to_remove: 735 for r in to_remove:
731 if os.path.exists(r): 736 if os.path.exists(r):
732 bb.note('Removing %s' % r) 737 bb.note('Removing %s' % r)