From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id E0C7E607BB for ; Fri, 26 Jun 2015 16:41:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t5QGfrIX001741 for ; Fri, 26 Jun 2015 17:41:53 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7PcC0h3MzzZ1 for ; Fri, 26 Jun 2015 17:41:53 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t5QGfe7b001737 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 26 Jun 2015 17:41:51 +0100 Message-ID: <1435336900.10583.31.camel@linuxfoundation.org> From: Richard Purdie To: bitbake-devel Date: Fri, 26 Jun 2015 17:41:40 +0100 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Subject: [PATCH] fetch/perforce: Fix single file checkouts X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2015 16:41:54 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Fetching directories with p4 worked but single files did not. This patch from Helmut Auer (helmut.auer@harman.com) fixes that issue. [YOCTO #7891] Signed-off-by: Richard Purdie diff --git a/lib/bb/fetch2/perforce.py b/lib/bb/fetch2/perforce.py index 5a6631a..3a10c7c 100644 --- a/lib/bb/fetch2/perforce.py +++ b/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))