]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_ipk: Do not depend on the existence of "D" to create ipk package
authorDongxiao Xu <dongxiao.xu@intel.com>
Fri, 21 Jan 2011 05:51:11 +0000 (13:51 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jan 2011 16:44:09 +0000 (16:44 +0000)
If build from sstate results, the ${D} will not be installed. In this
case the creation of ipk package will be skipped, which will cause
the build failure.

Fix the issue by removing the judgement of ${D} existence.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/classes/package_ipk.bbclass

index 5ddd6c66ea61295efbee2925811a7228a7cd6a40..fdf326205b2b38612e58a16271211273b835cbe4 100644 (file)
@@ -133,17 +133,12 @@ python do_package_ipk () {
 
        workdir = bb.data.getVar('WORKDIR', d, True)
        outdir = bb.data.getVar('PKGWRITEDIRIPK', d, True)
-       dvar = bb.data.getVar('D', d, True)
        tmpdir = bb.data.getVar('TMPDIR', d, True)
        pkgdest = bb.data.getVar('PKGDEST', d, True)
-       if not workdir or not outdir or not dvar or not tmpdir:
+       if not workdir or not outdir or not tmpdir:
                bb.error("Variables incorrectly set, unable to package")
                return
 
-       if not os.path.exists(dvar):
-               bb.debug(1, "Nothing installed, nothing to do")
-               return
-
        packages = bb.data.getVar('PACKAGES', d, True)
        if not packages or packages == '':
                bb.debug(1, "No packages; nothing to do")