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:
parent
ebf771bc5a
commit
1e1e9a3209
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue