update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH}
}
-def updatealternativesafterparse(d):
- import bb
+def update_alternatives_after_parse(d):
if bb.data.getVar('ALTERNATIVE_NAME', d) == None:
raise bb.build.FuncFailed, "%s inherits update-alternatives but doesn't set ALTERNATIVE_NAME" % bb.data.getVar('FILE', d)
if bb.data.getVar('ALTERNATIVE_PATH', d) == None:
raise bb.build.FuncFailed, "%s inherits update-alternatives but doesn't set ALTERNATIVE_PATH" % bb.data.getVar('FILE', d)
python __anonymous() {
- updatealternativesafterparse(d)
+ update_alternatives_after_parse(d)
}
python populate_packages_prepend () {