* [PATCH] fetch/perforce: Fix single file checkouts
@ 2015-06-26 16:41 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-06-26 16:41 UTC (permalink / raw)
To: bitbake-devel
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 <richard.purdie@linuxfoundation.org>
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))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-26 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 16:41 [PATCH] fetch/perforce: Fix single file checkouts Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox