diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-22 16:22:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-03 17:51:21 +0000 |
commit | df0f92cdc925fe7f3bb2e6afe76cf10b0656ead6 (patch) | |
tree | a09a1503ac90e2936b342fc7aab21acc4dabedd8 | |
parent | 76b50d0d72c4e2b03fc53fade255e87c1922e88d (diff) | |
download | bitbake-df0f92cdc925fe7f3bb2e6afe76cf10b0656ead6.tar.gz |
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)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/perforce.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/perforce.py b/lib/bb/fetch2/perforce.py index fc4074d5a..d2ecccc54 100644 --- a/lib/bb/fetch2/perforce.py +++ b/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) |