diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-04 14:40:41 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 09:06:37 +0000 |
| commit | 7202a77134029cb37540c785ce0161a4dd574853 (patch) | |
| tree | e9b8d7d3c180260317b661ce0f325a5492d9a6db /bitbake/lib/bb/fetch2/local.py | |
| parent | 8f2abf4a9f000d42e98c4936e393bd5033a1af48 (diff) | |
| download | poky-7202a77134029cb37540c785ce0161a4dd574853.tar.gz | |
bitbake/fetch2: Use True instead of integer values
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/local.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/local.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py index 7b840a46d3..d77d39375e 100644 --- a/bitbake/lib/bb/fetch2/local.py +++ b/bitbake/lib/bb/fetch2/local.py | |||
| @@ -50,11 +50,11 @@ class Local(FetchMethod): | |||
| 50 | path = path.split(";")[0] | 50 | path = path.split(";")[0] |
| 51 | newpath = path | 51 | newpath = path |
| 52 | if path[0] != "/": | 52 | if path[0] != "/": |
| 53 | filespath = data.getVar('FILESPATH', d, 1) | 53 | filespath = data.getVar('FILESPATH', d, True) |
| 54 | if filespath: | 54 | if filespath: |
| 55 | newpath = bb.utils.which(filespath, path) | 55 | newpath = bb.utils.which(filespath, path) |
| 56 | if not newpath: | 56 | if not newpath: |
| 57 | filesdir = data.getVar('FILESDIR', d, 1) | 57 | filesdir = data.getVar('FILESDIR', d, True) |
| 58 | if filesdir: | 58 | if filesdir: |
| 59 | newpath = os.path.join(filesdir, path) | 59 | newpath = os.path.join(filesdir, path) |
| 60 | return newpath | 60 | return newpath |
