summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2015-08-26 09:37:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-04 16:23:59 +0100
commitabba11daf9e8e20fec723f3497cd7ce257b9bfed (patch)
treecd002643ebab73b4545dfc6cd5b1cf1c2878a226 /bitbake/lib/bb/fetch2
parent7c4fdb8c178a2a48ee8c3a203dcac51b32c5ad1d (diff)
downloadpoky-abba11daf9e8e20fec723f3497cd7ce257b9bfed.tar.gz
bitbake: bb.fetch.git: remove leading '.' from gitsrcname
When using an absolute file URI, there's no host, and the path starts with '/', the dir under ${DL_DIR}/git2/ ends up starting with '.', so is hidden. Remove any leading '.' to fix this. (Bitbake rev: 8dce6964d56b36a77fb113f2ad496cc992a5ff36) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 374d846798..40658ff94c 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -137,7 +137,10 @@ class Git(FetchMethod):
137 ud.unresolvedrev[name] = ud.revisions[name] 137 ud.unresolvedrev[name] = ud.revisions[name]
138 ud.revisions[name] = self.latest_revision(ud, d, name) 138 ud.revisions[name] = self.latest_revision(ud, d, name)
139 139
140 gitsrcname = '%s%s' % (ud.host.replace(':','.'), ud.path.replace('/', '.').replace('*', '.')) 140 gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.'))
141 if gitsrcname.startswith('.'):
142 gitsrcname = gitsrcname[1:]
143
141 # for rebaseable git repo, it is necessary to keep mirror tar ball 144 # for rebaseable git repo, it is necessary to keep mirror tar ball
142 # per revision, so that even the revision disappears from the 145 # per revision, so that even the revision disappears from the
143 # upstream repo in the future, the mirror will remain intact and still 146 # upstream repo in the future, the mirror will remain intact and still