diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-22 16:22:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-24 12:25:37 +0000 |
commit | 6ddb9bf0976169fde7eee16d70a83210aa354416 (patch) | |
tree | a0ca4519d348db2b3d37a068233c5ab6f1551015 /bitbake/lib/bb/fetch2/perforce.py | |
parent | 4ca910d4cf8bf36723bfd4fd93d33ae1e64e92b7 (diff) | |
download | poky-6ddb9bf0976169fde7eee16d70a83210aa354416.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 rev: 40e06dc459d9c0b5d42d65b2d2c846196fd36b1f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/perforce.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/perforce.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py index ac1bfc7df8..7491a53600 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 | ||