diff options
Diffstat (limited to 'meta/classes/package_tar.bbclass')
| -rw-r--r-- | meta/classes/package_tar.bbclass | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass index e76ce292e4..d502847d9d 100644 --- a/meta/classes/package_tar.bbclass +++ b/meta/classes/package_tar.bbclass | |||
| @@ -8,33 +8,6 @@ python package_tar_fn () { | |||
| 8 | d.setVar('PKGFN', fn) | 8 | d.setVar('PKGFN', fn) |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | python package_tar_install () { | ||
| 12 | import subprocess | ||
| 13 | pkg = d.getVar('PKG', True) | ||
| 14 | pkgfn = d.getVar('PKGFN', True) | ||
| 15 | rootfs = d.getVar('IMAGE_ROOTFS', True) | ||
| 16 | |||
| 17 | if None in (pkg,pkgfn,rootfs): | ||
| 18 | bb.error("missing variables (one or more of PKG, PKGFN, IMAGEROOTFS)") | ||
| 19 | raise bb.build.FuncFailed | ||
| 20 | try: | ||
| 21 | bb.mkdirhier(rootfs) | ||
| 22 | os.chdir(rootfs) | ||
| 23 | except OSError: | ||
| 24 | import sys | ||
| 25 | (type, value, traceback) = sys.exc_info() | ||
| 26 | print value | ||
| 27 | raise bb.build.FuncFailed | ||
| 28 | |||
| 29 | if not os.access(pkgfn, os.R_OK): | ||
| 30 | bb.debug(1, "%s does not exist, skipping" % pkgfn) | ||
| 31 | raise bb.build.FuncFailed | ||
| 32 | |||
| 33 | ret = subprocess.call('zcat %s | tar -xf -' % pkgfn, shell=True) | ||
| 34 | if ret != 0: | ||
| 35 | raise bb.build.FuncFailed | ||
| 36 | } | ||
| 37 | |||
| 38 | python do_package_tar () { | 11 | python do_package_tar () { |
| 39 | import subprocess | 12 | import subprocess |
| 40 | workdir = d.getVar('WORKDIR', True) | 13 | workdir = d.getVar('WORKDIR', True) |
