package.bbclass: Skip testing "packages" a second time.
Since the "packages" variable is already tested a few lines above in the same routine: if len(packages) < 1: bb.debug(1, "No packages to build, skipping do_package") return there is no point testing it again, and the error message doesn't even refer to "packages", anyway. (From OE-Core rev: 371fbacff47828cfff99f1152f9e269e27c474da) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
2d5781ac46
commit
faf94a9d6d
|
@ -1885,7 +1885,7 @@ python do_package () {
|
|||
dvar = d.getVar('PKGD', True)
|
||||
pn = d.getVar('PN', True)
|
||||
|
||||
if not workdir or not outdir or not dest or not dvar or not pn or not packages:
|
||||
if not workdir or not outdir or not dest or not dvar or not pn:
|
||||
bb.error("WORKDIR, DEPLOY_DIR, D, PN and PKGD all must be defined, unable to package")
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue