diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-26 17:34:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-27 22:51:07 +0100 |
commit | 39da6579901c62a83ed9319c2016c58fbbc108fe (patch) | |
tree | 04f9766bd419731cbe62a4042350dbe3830873e2 | |
parent | b45952650ce8f470f124df36185b79e0d3a1783a (diff) | |
download | bitbake-39da6579901c62a83ed9319c2016c58fbbc108fe.tar.gz |
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]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/perforce.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/perforce.py b/lib/bb/fetch2/perforce.py index 5a6631a38..3a10c7ca3 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)) |