]> code.ossystems Code Review - openembedded-core.git/commit
archiver: don't require that images are built using RPM to build SRPMs
authorRoss Burton <ross.burton@intel.com>
Thu, 25 Jan 2018 17:06:24 +0000 (17:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Jan 2018 08:49:43 +0000 (08:49 +0000)
commitcdae5c41e4f67a8757efc5ce1ef11d730edc3af1
tree65b2e77f8a47bd6223966d502a6ad629b505c59c
parent3e4ddeab65d4d2e4aaf03d442c2a1a8c7a2ce8a2
archiver: don't require that images are built using RPM to build SRPMs

The requirement for images being built using RPM is too strict to have access to
the RPM functions, simply checking that package_rpm is in PACKAGE_CLASSES is
sufficient.

Also fail if SRPMs are requested but package_rpm isn't enabled, instead of
silently not doing what we were asked.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/archiver.bbclass