diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:25:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-27 10:25:34 +0000 |
commit | 0a434ac10158e2011d41a1189e65e9474b1672be (patch) | |
tree | 6171516b25cb337343a6373e34aec0d061e4f5e8 /meta/classes/src_distribute.bbclass | |
parent | 71fded5145454b144413057e11f78f718d947093 (diff) | |
download | poky-0a434ac10158e2011d41a1189e65e9474b1672be.tar.gz |
getVar/setVar cleanups
Complete the bb.data.getVar/setVar replacements with accesses
directly to the data store object.
(From OE-Core rev: 2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/src_distribute.bbclass')
-rw-r--r-- | meta/classes/src_distribute.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/src_distribute.bbclass b/meta/classes/src_distribute.bbclass index 2069d652a3..651e492598 100644 --- a/meta/classes/src_distribute.bbclass +++ b/meta/classes/src_distribute.bbclass | |||
@@ -29,13 +29,13 @@ python do_distribute_sources () { | |||
29 | if url.basename == '*': | 29 | if url.basename == '*': |
30 | import os.path | 30 | import os.path |
31 | dest_dir = os.path.basename(os.path.dirname(os.path.abspath(url.localpath))) | 31 | dest_dir = os.path.basename(os.path.dirname(os.path.abspath(url.localpath))) |
32 | bb.data.setVar('DEST', "%s_%s/" % (d.getVar('PF', 1), dest_dir), d) | 32 | d.setVar('DEST', "%s_%s/" % (d.getVar('PF', 1), dest_dir)) |
33 | else: | 33 | else: |
34 | bb.data.setVar('DEST', "%s_%s" % (d.getVar('PF', 1), url.basename), d) | 34 | d.setVar('DEST', "%s_%s" % (d.getVar('PF', 1), url.basename)) |
35 | else: | 35 | else: |
36 | d.setVar('DEST', '') | 36 | d.setVar('DEST', '') |
37 | 37 | ||
38 | bb.data.setVar('SRC_DISTRIBUTEDIR', "%s/%s" % (sources_dir, license), d) | 38 | d.setVar('SRC_DISTRIBUTEDIR', "%s/%s" % (sources_dir, license)) |
39 | bb.build.exec_func('SRC_DISTRIBUTECOMMAND', d) | 39 | bb.build.exec_func('SRC_DISTRIBUTECOMMAND', d) |
40 | } | 40 | } |
41 | 41 | ||