diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/bzr.py')
-rw-r--r-- | bitbake/lib/bb/fetch/bzr.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch/bzr.py b/bitbake/lib/bb/fetch/bzr.py index 4cd51cb337..92fff741ac 100644 --- a/bitbake/lib/bb/fetch/bzr.py +++ b/bitbake/lib/bb/fetch/bzr.py | |||
@@ -37,10 +37,7 @@ class Bzr(Fetch): | |||
37 | def localpath (self, url, ud, d): | 37 | def localpath (self, url, ud, d): |
38 | 38 | ||
39 | # Create paths to bzr checkouts | 39 | # Create paths to bzr checkouts |
40 | relpath = ud.path | 40 | relpath = self._strip_leading_slashes(ud.path) |
41 | if relpath.startswith('/'): | ||
42 | # Remove leading slash as os.path.join can't cope | ||
43 | relpath = relpath[1:] | ||
44 | ud.pkgdir = os.path.join(data.expand('${BZRDIR}', d), ud.host, relpath) | 41 | ud.pkgdir = os.path.join(data.expand('${BZRDIR}', d), ud.host, relpath) |
45 | 42 | ||
46 | revision = Fetch.srcrev_internal_helper(ud, d) | 43 | revision = Fetch.srcrev_internal_helper(ud, d) |