[PATCH] fetch2/git: Allow to specify the name of the checkout directory

Holger Hans Peter Freyther zecke at selfish.org
Wed Jun 22 22:50:13 CEST 2011


Signed-off-by: Holger Hans Peter Freyther <holger at moiji-mobile.com>
---
 lib/bb/fetch2/git.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index f3bc793..534c87d 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -212,7 +212,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)
 
-- 
1.7.4.1


--------------010704050509060801000306--



More information about the bitbake-devel mailing list