summaryrefslogtreecommitdiff
path: root/meta/classes/package_tar.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-17 09:00:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-17 22:31:29 +0000
commit3684036213c9b1c27389260b7a1e3441c6bd659d (patch)
tree4e95a3151809f9bdfcdd12b4a5c71554cf48ceef /meta/classes/package_tar.bbclass
parent721ef058b37604e100021ec7a90ad2f745d83916 (diff)
downloadopenembedded-core-3684036213c9b1c27389260b7a1e3441c6bd659d.tar.gz
openembedded-core-3684036213c9b1c27389260b7a1e3441c6bd659d.tar.bz2
openembedded-core-3684036213c9b1c27389260b7a1e3441c6bd659d.zip
package_rpm/dev/ipk/tar: Drop unused functions
The package_xxx_install functions date from a different era and are not used by anything. In the rpm case, they're simply unimplemented, in the tar case they're using broken whitespace and deprecated functions. We might as well clean out the old broken unused code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_tar.bbclass')
-rw-r--r--meta/classes/package_tar.bbclass27
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 () {
d.setVar('PKGFN', fn)
}
-python package_tar_install () {
- import subprocess
- pkg = d.getVar('PKG', True)
- pkgfn = d.getVar('PKGFN', True)
- rootfs = d.getVar('IMAGE_ROOTFS', True)
-
- if None in (pkg,pkgfn,rootfs):
- bb.error("missing variables (one or more of PKG, PKGFN, IMAGEROOTFS)")
- raise bb.build.FuncFailed
- try:
- bb.mkdirhier(rootfs)
- os.chdir(rootfs)
- except OSError:
- import sys
- (type, value, traceback) = sys.exc_info()
- print value
- raise bb.build.FuncFailed
-
- if not os.access(pkgfn, os.R_OK):
- bb.debug(1, "%s does not exist, skipping" % pkgfn)
- raise bb.build.FuncFailed
-
- ret = subprocess.call('zcat %s | tar -xf -' % pkgfn, shell=True)
- if ret != 0:
- raise bb.build.FuncFailed
-}
-
python do_package_tar () {
import subprocess
workdir = d.getVar('WORKDIR', True)