From c168a351a6d1395faa78a6e321152b831f16b03e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 22 Nov 2013 16:22:28 +0000 Subject: 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 --- bitbake/lib/bb/fetch2/perforce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') 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): base = path which = path.find('/...') if which != -1: - base = path[:which] + base = path[:which-1] base = self._strip_leading_slashes(base) -- cgit v1.2.3-54-g00ecf