diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-12-11 17:11:32 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-12-11 17:12:53 +0000 |
commit | b80f6d8ac4f7f76c2a2f1450616a963ca4e6deba (patch) | |
tree | 89c4cdde70be0fb201317445b29ca95c2fb8ee86 /bitbake/lib/bb | |
parent | a94737f61117ef356094906e4333b056ed48d265 (diff) | |
download | openembedded-core-b80f6d8ac4f7f76c2a2f1450616a963ca4e6deba.tar.gz openembedded-core-b80f6d8ac4f7f76c2a2f1450616a963ca4e6deba.tar.bz2 openembedded-core-b80f6d8ac4f7f76c2a2f1450616a963ca4e6deba.zip |
bitbake/git.py: Add support for fullclone parameter
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/fetch/git.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 5e7cf985f8..79ca1a2663 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py @@ -58,7 +58,10 @@ class Git(Fetch): if not ud.tag or ud.tag == "master": ud.tag = self.latest_revision(url, ud, d) - ud.localfile = data.expand('git_%s%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.tag), d) + if 'fullclone' in ud.parm: + ud.localfile = ud.mirrortarball + else: + ud.localfile = data.expand('git_%s%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.tag), d) return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) @@ -98,10 +101,13 @@ class Git(Fetch): os.chdir(ud.clonedir) mirror_tarballs = data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) - if mirror_tarballs != "0": + if mirror_tarballs != "0" or 'fullclone' in ud.parm: bb.msg.note(1, bb.msg.domain.Fetcher, "Creating tarball of git repository") runfetchcmd("tar -czf %s %s" % (repofile, os.path.join(".", ".git", "*") ), d) + if 'fullclone' in ud.parm: + return + if os.path.exists(codir): bb.utils.prunedir(codir) |