summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 17:34:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-27 22:51:20 +0100
commit3836d9b4ab0c74985195b9af58b1bd95bc0b6726 (patch)
treeb0a559fe6133e12f53ae73234bc0875291a1c0b5 /bitbake
parent4bc0fc70b9484c7f375f1e7fddc5e442f6936710 (diff)
downloadpoky-3836d9b4ab0c74985195b9af58b1bd95bc0b6726.tar.gz
bitbake: fetch/perforce: Fix single file checkouts
Fetching directories with p4 worked but single files did not. This patch from Helmut Auer (helmut.auer@harman.com) fixes that issue. [YOCTO #7891] (Bitbake rev: 39da6579901c62a83ed9319c2016c58fbbc108fe) 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 5a6631a384..3a10c7ca33 100644
--- a/bitbake/lib/bb/fetch2/perforce.py
+++ b/bitbake/lib/bb/fetch2/perforce.py
@@ -123,7 +123,7 @@ class Perforce(FetchMethod):
123 if depot.find('/...') != -1: 123 if depot.find('/...') != -1:
124 path = depot[:depot.find('/...')] 124 path = depot[:depot.find('/...')]
125 else: 125 else:
126 path = depot 126 path = depot[:depot.rfind('/')]
127 127
128 module = parm.get('module', os.path.basename(path)) 128 module = parm.get('module', os.path.basename(path))
129 129