diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/perforce.py')
| -rw-r--r-- | bitbake/lib/bb/fetch/perforce.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch/perforce.py b/bitbake/lib/bb/fetch/perforce.py index bdd23deef5..222ed7eaaa 100644 --- a/bitbake/lib/bb/fetch/perforce.py +++ b/bitbake/lib/bb/fetch/perforce.py | |||
| @@ -133,10 +133,7 @@ class Perforce(Fetch): | |||
| 133 | else: | 133 | else: |
| 134 | path = depot | 134 | path = depot |
| 135 | 135 | ||
| 136 | if "module" in parm: | 136 | module = parm.get('module', os.path.basename(path)) |
| 137 | module = parm["module"] | ||
| 138 | else: | ||
| 139 | module = os.path.basename(path) | ||
| 140 | 137 | ||
| 141 | localdata = data.createCopy(d) | 138 | localdata = data.createCopy(d) |
| 142 | data.setVar('OVERRIDES', "p4:%s" % data.getVar('OVERRIDES', localdata), localdata) | 139 | data.setVar('OVERRIDES', "p4:%s" % data.getVar('OVERRIDES', localdata), localdata) |
| @@ -206,4 +203,4 @@ class Perforce(Fetch): | |||
| 206 | pass | 203 | pass |
| 207 | raise FetchError(module) | 204 | raise FetchError(module) |
| 208 | # cleanup | 205 | # cleanup |
| 209 | os.system('rm -rf %s' % tmpfile) | 206 | bb.utils.prunedir(tmpfile) |
