summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/perforce.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py
index 6f3c95b6ce..da6d337461 100644
--- a/bitbake/lib/bb/fetch2/perforce.py
+++ b/bitbake/lib/bb/fetch2/perforce.py
@@ -119,6 +119,7 @@ class Perforce(FetchMethod):
119 cleanedpath = ud.path.replace('/...', '').replace('/', '.') 119 cleanedpath = ud.path.replace('/...', '').replace('/', '.')
120 cleanedhost = ud.host.replace(':', '.') 120 cleanedhost = ud.host.replace(':', '.')
121 121
122 cleanedmodule = ""
122 # Merge the path and module into the final depot location 123 # Merge the path and module into the final depot location
123 if ud.module: 124 if ud.module:
124 if ud.module.find('/') == 0: 125 if ud.module.find('/') == 0:
@@ -133,7 +134,7 @@ class Perforce(FetchMethod):
133 134
134 ud.setup_revisions(d) 135 ud.setup_revisions(d)
135 136
136 ud.localfile = d.expand('%s_%s_%s.tar.gz' % (cleanedhost, cleanedpath, ud.revision)) 137 ud.localfile = d.expand('%s_%s_%s_%s.tar.gz' % (cleanedhost, cleanedpath, cleandedmodule, ud.revision))
137 138
138 def _buildp4command(self, ud, d, command, depot_filename=None): 139 def _buildp4command(self, ud, d, command, depot_filename=None):
139 """ 140 """