summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index faf7fc489f..c9c8bdb893 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -607,6 +607,13 @@ class Fetch(object):
607 and duplicate code execution) 607 and duplicate code execution)
608 """ 608 """
609 return url 609 return url
610 def _strip_leading_slashes(self, relpath):
611 """
612 Remove leading slash as os.path.join can't cope
613 """
614 while os.path.isabs(relpath):
615 relpath = relpath[1:]
616 return relpath
610 617
611 def setUrls(self, urls): 618 def setUrls(self, urls):
612 self.__urls = urls 619 self.__urls = urls