]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_rpm: Don't check for the existence of dvar as its never used
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 22 Oct 2010 11:56:20 +0000 (12:56 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 22 Oct 2010 11:56:20 +0000 (12:56 +0100)
If a sstate package exists for the package task but not for the rpm packaging
task, the output from the package task will be used. The directory pointed
to by dvar will not exist under this scenario.

Since the directory is never used by the packaging process remove the
check, substituting the pkgd variable which is always present and used.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/package_rpm.bbclass

index b31830f9453ae45d7ff90da9dceeb9efe12196f6..0af93e7b74c4d5338726ad99e6d74213558b4b9b 100644 (file)
@@ -437,18 +437,13 @@ python do_package_rpm () {
 
        workdir = bb.data.getVar('WORKDIR', d, True)
        outdir = bb.data.getVar('DEPLOY_DIR_IPK', d, True)
-       dvar = bb.data.getVar('D', d, True)
        tmpdir = bb.data.getVar('TMPDIR', d, True)
        pkgd = bb.data.getVar('PKGD', 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 pkgd 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")