diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/perforce.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/perforce.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py index 47a4a5d3d4..d079a33c62 100644 --- a/bitbake/lib/bb/fetch2/perforce.py +++ b/bitbake/lib/bb/fetch2/perforce.py | |||
| @@ -103,19 +103,15 @@ class Perforce(FetchMethod): | |||
| 103 | def urldata_init(self, ud, d): | 103 | def urldata_init(self, ud, d): |
| 104 | (host, path, user, pswd, parm) = Perforce.doparse(ud.url, d) | 104 | (host, path, user, pswd, parm) = Perforce.doparse(ud.url, d) |
| 105 | 105 | ||
| 106 | base = path | 106 | base_path = path.replace('/...', '') |
| 107 | which = path.find('/...') | 107 | base_path = self._strip_leading_slashes(base_path) |
| 108 | if which != -1: | ||
| 109 | base = path[:which] | ||
| 110 | |||
| 111 | base = self._strip_leading_slashes(base) | ||
| 112 | 108 | ||
| 113 | if "label" in parm: | 109 | if "label" in parm: |
| 114 | version = parm["label"] | 110 | version = parm["label"] |
| 115 | else: | 111 | else: |
| 116 | version = Perforce.getcset(d, path, host, user, pswd, parm) | 112 | version = Perforce.getcset(d, path, host, user, pswd, parm) |
| 117 | 113 | ||
| 118 | ud.localfile = data.expand('%s+%s+%s.tar.gz' % (host, base.replace('/', '.'), version), d) | 114 | ud.localfile = data.expand('%s+%s+%s.tar.gz' % (host, base_path.replace('/', '.'), version), d) |
| 119 | 115 | ||
| 120 | def download(self, ud, d): | 116 | def download(self, ud, d): |
| 121 | """ | 117 | """ |
