diff options
author | Chris Larson <clarson@kergoth.com> | 2004-11-23 08:15:10 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-11-23 08:15:10 +0000 |
commit | 5c88f81b9138f4600327e6486f81a6924920aa05 (patch) | |
tree | 457b5879a2983ad9a758eea8cb3155b37f8a7e58 /classes | |
parent | 1380eec08305c8c375e9c29b1486959210cd7c8d (diff) |
Merge openembedded@openembedded.bkbits.net:packages-devel
into odin.sc.ti.com:/home/kergoth/code/packages
2004/11/23 02:13:28-06:00 ti.com!kergoth
Ensure that 'exceptions' is imported in the anonymous python function in base.oeclass.
BKrev: 41a2f18e0onbXYsxkLoI8DslIznBDA
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.oeclass | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/classes/base.oeclass b/classes/base.oeclass index b3012f3cee..5f4866e6b0 100644 --- a/classes/base.oeclass +++ b/classes/base.oeclass @@ -247,7 +247,7 @@ python do_showdata() { # emit variables and shell functions oe.data.emit_env(sys.__stdout__, d, True) # emit the metadata which isnt valid shell - for e in d.keys(): + for e in oe.data.keys(d): if oe.data.getVarFlag(e, 'python', d): sys.__stdout__.write("\npython %s () {\n%s}\n" % (e, oe.data.getVar(e, d, 1))) elif oe.data.getVarFlag(e, 'func', d): @@ -263,7 +263,7 @@ python do_listtasks() { # emit variables and shell functions #oe.data.emit_env(sys.__stdout__, d) # emit the metadata which isnt valid shell - for e in d.keys(): + for e in oe.data.keys(d): if oe.data.getVarFlag(e, 'task', d): sys.__stdout__.write("%s\n" % e) } @@ -339,9 +339,10 @@ addtask fetch do_fetch[dirs] = "${DL_DIR}" do_fetch[nostamp] = "1" python base_do_fetch() { - import sys, copy + import sys - localdata = copy.deepcopy(d) + localdata = {} + oe.data.linkDataSet(localdata,d) oe.data.update_data(localdata) src_uri = oe.data.getVar('SRC_URI', localdata, 1) @@ -367,9 +368,10 @@ python base_do_fetch() { addtask unpack after do_fetch do_unpack[dirs] = "${WORKDIR}" python base_do_unpack() { - import re, copy, os + import re, os - localdata = copy.deepcopy(d) + localdata = {} + oe.data.linkDataSet(localdata,d) oe.data.update_data(localdata) src_uri = oe.data.getVar('SRC_URI', localdata) @@ -627,6 +629,7 @@ python read_subpackage_metadata () { } python __anonymous () { + import exceptions need_host = oe.data.getVar('COMPATIBLE_HOST', d, 1) if need_host: import re |