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: df0f92cdc925fe7f3bb2e6afe76cf10b0656ead6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c5989a9e51
commit
53d2563ff1
|
@ -112,7 +112,7 @@ class Perforce(FetchMethod):
|
||||||
base = path
|
base = path
|
||||||
which = path.find('/...')
|
which = path.find('/...')
|
||||||
if which != -1:
|
if which != -1:
|
||||||
base = path[:which]
|
base = path[:which-1]
|
||||||
|
|
||||||
base = self._strip_leading_slashes(base)
|
base = self._strip_leading_slashes(base)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue