diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/perforce.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/perforce.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py index 3debad59f4..903a8e61ae 100644 --- a/bitbake/lib/bb/fetch2/perforce.py +++ b/bitbake/lib/bb/fetch2/perforce.py | |||
@@ -43,13 +43,9 @@ class Perforce(FetchMethod): | |||
43 | provided by the env, use it. If P4PORT is specified by the recipe, use | 43 | provided by the env, use it. If P4PORT is specified by the recipe, use |
44 | its values, which may override the settings in P4CONFIG. | 44 | its values, which may override the settings in P4CONFIG. |
45 | """ | 45 | """ |
46 | ud.basecmd = d.getVar('FETCHCMD_p4') | 46 | ud.basecmd = d.getVar("FETCHCMD_p4") or "/usr/bin/env p4" |
47 | if not ud.basecmd: | ||
48 | ud.basecmd = "/usr/bin/env p4" | ||
49 | 47 | ||
50 | ud.dldir = d.getVar('P4DIR') | 48 | ud.dldir = d.getVar("P4DIR") or (d.getVar("DL_DIR") + "/p4") |
51 | if not ud.dldir: | ||
52 | ud.dldir = '%s/%s' % (d.getVar('DL_DIR'), 'p4') | ||
53 | 49 | ||
54 | path = ud.url.split('://')[1] | 50 | path = ud.url.split('://')[1] |
55 | path = path.split(';')[0] | 51 | path = path.split(';')[0] |