Ugh, dont accidentally check in proti's cow changes..
authorChris Larson <clarson@kergoth.com>
Tue, 23 Nov 2004 08:43:36 +0000 (08:43 +0000)
committerChris Larson <clarson@kergoth.com>
Tue, 23 Nov 2004 08:43:36 +0000 (08:43 +0000)
BKrev: 41a2f8382h0kNRNfZJn3IhvBWw_OFA

classes/base.oeclass

index 5f4866e..04f1bd3 100644 (file)
@@ -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 oe.data.keys(d):
+       for e in d.keys():
                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 oe.data.keys(d):
+       for e in d.keys():
                if oe.data.getVarFlag(e, 'task', d):
                        sys.__stdout__.write("%s\n" % e)
 }
@@ -339,10 +339,9 @@ addtask fetch
 do_fetch[dirs] = "${DL_DIR}"
 do_fetch[nostamp] = "1"
 python base_do_fetch() {
-       import sys
+       import sys, copy
 
-       localdata = {}
-       oe.data.linkDataSet(localdata,d)
+       localdata = copy.deepcopy(d)
        oe.data.update_data(localdata)
 
        src_uri = oe.data.getVar('SRC_URI', localdata, 1)
@@ -368,10 +367,9 @@ python base_do_fetch() {
 addtask unpack after do_fetch
 do_unpack[dirs] = "${WORKDIR}"
 python base_do_unpack() {
-       import re, os
+       import re, copy, os
 
-       localdata = {}
-       oe.data.linkDataSet(localdata,d)
+       localdata = copy.deepcopy(d)
        oe.data.update_data(localdata)
 
        src_uri = oe.data.getVar('SRC_URI', localdata)