diff options
| author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-11-16 20:46:44 +0100 |
|---|---|---|
| committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-11-16 20:46:44 +0100 |
| commit | c80e42faffdc71e878168c52bb3767e2277dd722 (patch) | |
| tree | c24cedac802665648f2ac24bd184c772ca2e1460 /classes/package_tar.bbclass | |
| parent | b32e9132c3b7186605a8f58978bf74dbcf12e1f7 (diff) | |
| parent | 2eb99471ec5f9c49a99b7349395d7dda0aee6b91 (diff) | |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'classes/package_tar.bbclass')
| -rw-r--r-- | classes/package_tar.bbclass | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/package_tar.bbclass b/classes/package_tar.bbclass index a0eacf27f5..9c9ae4ff0a 100644 --- a/classes/package_tar.bbclass +++ b/classes/package_tar.bbclass @@ -1,14 +1,11 @@ inherit package python package_tar_fn () { - import os - from bb import data fn = os.path.join(bb.data.getVar('DEPLOY_DIR_TAR', d, True), bb.data.expand('${PKG}-${PV}-${PR}${DISTRO_PR}.tar.gz', d, True)) bb.data.setVar('PKGFN', fn, d) } python package_tar_install () { - import os, sys pkg = bb.data.getVar('PKG', d, 1) pkgfn = bb.data.getVar('PKGFN', d, 1) rootfs = bb.data.getVar('IMAGE_ROOTFS', d, 1) @@ -20,6 +17,7 @@ python package_tar_install () { bb.mkdirhier(rootfs) os.chdir(rootfs) except OSError: + import sys (type, value, traceback) = sys.exc_info() print value raise bb.build.FuncFailed @@ -39,7 +37,6 @@ python do_package_tar () { bb.error("WORKDIR not defined, unable to package") return - import os # path manipulations outdir = bb.data.getVar('DEPLOY_DIR_TAR', d, 1) if not outdir: bb.error("DEPLOY_DIR_TAR not defined, unable to package") @@ -91,7 +88,6 @@ python do_package_tar () { } python () { - import bb if bb.data.getVar('PACKAGES', d, True) != '': deps = (bb.data.getVarFlag('do_package_write_tar', 'depends', d) or "").split() deps.append('tar-native:do_populate_staging') |
