diff options
Diffstat (limited to 'meta/classes/sourcepkg.bbclass')
| -rw-r--r-- | meta/classes/sourcepkg.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/sourcepkg.bbclass b/meta/classes/sourcepkg.bbclass index 38edfe4e2e..2a78a90452 100644 --- a/meta/classes/sourcepkg.bbclass +++ b/meta/classes/sourcepkg.bbclass | |||
| @@ -6,7 +6,7 @@ DISTRO ?= "openembedded" | |||
| 6 | 6 | ||
| 7 | def get_src_tree(d): | 7 | def get_src_tree(d): |
| 8 | 8 | ||
| 9 | workdir = d.getVar('WORKDIR', 1) | 9 | workdir = d.getVar('WORKDIR', True) |
| 10 | if not workdir: | 10 | if not workdir: |
| 11 | bb.error("WORKDIR not defined, unable to find source tree.") | 11 | bb.error("WORKDIR not defined, unable to find source tree.") |
| 12 | return | 12 | return |
| @@ -55,8 +55,8 @@ sourcepkg_do_archive_bb() { | |||
| 55 | 55 | ||
| 56 | python sourcepkg_do_dumpdata() { | 56 | python sourcepkg_do_dumpdata() { |
| 57 | 57 | ||
| 58 | workdir = d.getVar('WORKDIR', 1) | 58 | workdir = d.getVar('WORKDIR', True) |
| 59 | distro = d.getVar('DISTRO', 1) | 59 | distro = d.getVar('DISTRO', True) |
| 60 | s_tree = get_src_tree(d) | 60 | s_tree = get_src_tree(d) |
| 61 | openembeddeddir = os.path.join(workdir, s_tree, distro) | 61 | openembeddeddir = os.path.join(workdir, s_tree, distro) |
| 62 | dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}.showdata.dump",d)) | 62 | dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}.showdata.dump",d)) |
| @@ -74,7 +74,7 @@ python sourcepkg_do_dumpdata() { | |||
| 74 | # emit the metadata which isnt valid shell | 74 | # emit the metadata which isnt valid shell |
| 75 | for e in d.keys(): | 75 | for e in d.keys(): |
| 76 | if d.getVarFlag(e, 'python'): | 76 | if d.getVarFlag(e, 'python'): |
| 77 | f.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, 1))) | 77 | f.write("\npython %s () {\n%s}\n" % (e, d.getVar(e, True))) |
| 78 | f.close() | 78 | f.close() |
| 79 | } | 79 | } |
| 80 | 80 | ||
