aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-23 04:50:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 14:23:43 +0100
commit639db8c766cada7180f9447f51303f9b30d7e817 (patch)
treed7911da3a7ca0bbb673d3e72e3902ad618471174 /lib
parent8540c09d4e509e3277940464c71174d8a0aca6ab (diff)
downloadbitbake-639db8c766cada7180f9447f51303f9b30d7e817.tar.gz
fetch2/git: Allow to specify the name of the checkout directory
Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch2/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index ff7c33df1..9a578ae0b 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -213,7 +213,8 @@ class Git(FetchMethod):
else:
readpathspec = ""
- destdir = os.path.join(destdir, "git/")
+ destsuffix = ud.parm.get("destsuffix", "git/")
+ destdir = os.path.join(destdir, destsuffix)
if os.path.exists(destdir):
bb.utils.prunedir(destdir)