summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index c962acb106..d47191e57f 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -116,9 +116,6 @@ class Git(Fetch):
116 116
117 repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball) 117 repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball)
118 118
119 coname = '%s' % (ud.tag)
120 codir = os.path.join(ud.clonedir, coname)
121
122 # If we have no existing clone and no mirror tarball, try and obtain one 119 # If we have no existing clone and no mirror tarball, try and obtain one
123 if not os.path.exists(ud.clonedir) and not os.path.exists(repofile): 120 if not os.path.exists(ud.clonedir) and not os.path.exists(repofile):
124 try: 121 try:
@@ -149,7 +146,12 @@ class Git(Fetch):
149 runfetchcmd("%s prune-packed" % ud.basecmd, d) 146 runfetchcmd("%s prune-packed" % ud.basecmd, d)
150 runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d) 147 runfetchcmd("%s pack-redundant --all | xargs -r rm" % ud.basecmd, d)
151 148
149 def build_mirror_data(self, url, ud, d):
152 # Generate a mirror tarball if needed 150 # Generate a mirror tarball if needed
151 coname = '%s' % (ud.tag)
152 codir = os.path.join(ud.clonedir, coname)
153 repofile = os.path.join(data.getVar("DL_DIR", d, 1), ud.mirrortarball)
154
153 os.chdir(ud.clonedir) 155 os.chdir(ud.clonedir)
154 mirror_tarballs = data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) 156 mirror_tarballs = data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True)
155 if mirror_tarballs != "0" or 'fullclone' in ud.parm: 157 if mirror_tarballs != "0" or 'fullclone' in ud.parm: