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))