mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
package_ipk.bbclass: Simplify variable expansion
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5476 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -166,10 +166,9 @@ python do_package_ipk () {
|
||||
pkgname = pkg
|
||||
bb.data.setVar('PKG', pkgname, localdata)
|
||||
|
||||
overrides = bb.data.getVar('OVERRIDES', localdata)
|
||||
overrides = bb.data.getVar('OVERRIDES', localdata, True)
|
||||
if not overrides:
|
||||
raise bb.build.FuncFailed('OVERRIDES not defined')
|
||||
overrides = bb.data.expand(overrides, localdata)
|
||||
bb.data.setVar('OVERRIDES', overrides + ':' + pkg, localdata)
|
||||
|
||||
bb.data.update_data(localdata)
|
||||
|
||||
Reference in New Issue
Block a user