summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-22 16:22:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-03 17:51:35 +0000
commitc168a351a6d1395faa78a6e321152b831f16b03e (patch)
tree7d9f1b43730d411513c084f46cfa4fd8b23202c8 /bitbake
parent7800f43d7e67380769f45b969f03127f889db1f8 (diff)
downloadpoky-c168a351a6d1395faa78a6e321152b831f16b03e.tar.gz
bitbake: perforce: Fix path subdirectory issues
With a SRC_URI = " \ p4://depot/folder/...;module=localfolder/localsubfolder;changeslist=${P4CHANGELIST} \ " the subfolders of //depot/folder/... get renamed when mapped to the local folder structure. They lose the first 3 letters. This patch fixes that. Issue reported by and patch sent from katutxakurra@gmail.com [YOCTO #5380] (Bitbake master rev: 40e06dc459d9c0b5d42d65b2d2c846196fd36b1f) (Bitbake rev: a779ae4d4ef47fc36b98ec5753289af7755fcd03) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/perforce.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py
index fc4074d5a3..d2ecccc540 100644
--- a/bitbake/lib/bb/fetch2/perforce.py
+++ b/bitbake/lib/bb/fetch2/perforce.py
@@ -112,7 +112,7 @@ class Perforce(FetchMethod):
112 base = path 112 base = path
113 which = path.find('/...') 113 which = path.find('/...')
114 if which != -1: 114 if which != -1:
115 base = path[:which] 115 base = path[:which-1]
116 116
117 base = self._strip_leading_slashes(base) 117 base = self._strip_leading_slashes(base)
118 118