package_deb.bbclass: Handle all architecture as a special case solving multimachine build issues

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@953 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2006-11-24 17:23:05 +00:00
parent ebf771bc5a
commit 1e1e9a3209
1 changed files with 6 additions and 4 deletions

View File

@ -154,16 +154,18 @@ python do_package_deb () {
def pullData(l, d):
l2 = []
for i in l:
l2.append(bb.data.getVar(i, d, 1))
data = bb.data.getVar(i, d, 1)
if data is None:
raise KeyError(f)
if i == 'TARGET_ARCH' and bb.data.getVar('PACKAGE_ARCH', d, 1) == 'all':
data = 'all'
l2.append(data)
return l2
ctrlfile.write("Package: %s\n" % pkgname)
# check for required fields
try:
for (c, fs) in fields:
for f in fs:
if bb.data.getVar(f, localdata) is None:
raise KeyError(f)
ctrlfile.write(unicode(c % tuple(pullData(fs, localdata))))
except KeyError:
(type, value, traceback) = sys.exc_info()