From 3836d9b4ab0c74985195b9af58b1bd95bc0b6726 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 26 Jun 2015 17:34:16 +0100 Subject: 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 --- bitbake/lib/bb/fetch2/perforce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/perforce.py') 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): if depot.find('/...') != -1: path = depot[:depot.find('/...')] else: - path = depot + path = depot[:depot.rfind('/')] module = parm.get('module', os.path.basename(path)) -- cgit v1.2.3-54-g00ecf