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>
This commit is contained in:
Richard Purdie
2015-06-26 17:34:16 +01:00
parent 4bc0fc70b9
commit 3836d9b4ab

View File

@@ -123,7 +123,7 @@ class Perforce(FetchMethod):
if depot.find('/...') != -1:
path = depot[:depot.find('/...')]
else:
path = depot
path = depot[:depot.rfind('/')]
module = parm.get('module', os.path.basename(path))