diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-04-04 14:37:59 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-04-04 14:37:59 -0700 |
commit | 58bdaeb679d3c84cda827a33d09ce543547c45b4 (patch) | |
tree | f2aeec83110a94828f757c82181ba6a0dc77e901 /lib | |
parent | 156ea134e82d873ca4b5343261da2291a2b32ef6 (diff) | |
download | bitbake-58bdaeb679d3c84cda827a33d09ce543547c45b4.tar.gz |
cooker: fix -b with BBCLASSEXTEND
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/cooker.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index b6b5934d2..d4415d324 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -694,20 +694,23 @@ class BBCooker: if (task == None): task = self.configuration.cmd - (fn, cls) = bb.cache.Cache.virtualfn2realfn(buildfile) + fn, cls = bb.cache.Cache.virtualfn2realfn(buildfile) + fn = os.path.abspath(fn) buildfile = self.matchFile(fn) - fn = bb.cache.Cache.realfn2virtual(buildfile, cls) self.buildSetVars() self.status = bb.cache.CacheData() infos = bb.cache.Cache.parse(fn, self.get_file_appends(fn), \ self.configuration.data) - maininfo = None - for vfn, info in infos: - self.status.add_from_recipeinfo(vfn, info) - if vfn == fn: - maininfo = info + infos = dict(infos) + + fn = bb.cache.Cache.realfn2virtual(buildfile, cls) + try: + maininfo = infos[fn] + except KeyError: + bb.fatal("%s does not exist" % fn) + self.status.add_from_recipeinfo(fn, maininfo) # Tweak some variables item = maininfo.pn |