diff options
author | Mike Westerhof <mwester@dls.net> | 2008-10-24 00:18:19 -0500 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2008-10-24 00:18:19 -0500 |
commit | 05dd06fb5d13d6a33c82716cae23eecce09b6cb3 (patch) | |
tree | 8b5789ae4f24f38d2eebcdad1dc768d9c8029674 | |
parent | 7ca90a798fa83d5b5cd29f259447a7f10b72dc70 (diff) |
package_ipk.bbclass: add import bb where missing
(fixes build failure for pointercal, and probably others)
-rw-r--r-- | classes/package_ipk.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass index 438d4a15da..e0636eef70 100644 --- a/classes/package_ipk.bbclass +++ b/classes/package_ipk.bbclass @@ -16,7 +16,7 @@ python package_ipk_install () { # Warning - this function is not multimachine safe (see stagingdir reference)! # - import os, sys + import os, sys, bb pkg = bb.data.getVar('PKG', d, 1) pkgfn = bb.data.getVar('PKGFN', d, 1) rootfs = bb.data.getVar('IMAGE_ROOTFS', d, 1) @@ -118,7 +118,7 @@ package_generate_ipkg_conf () { } python do_package_ipk () { - import sys, re, copy + import sys, re, copy, bb workdir = bb.data.getVar('WORKDIR', d, 1) if not workdir: @@ -305,6 +305,7 @@ python () { } python do_package_write_ipk () { + import bb packages = bb.data.getVar('PACKAGES', d, True) if not packages: bb.debug(1, "No PACKAGES defined, nothing to package") |