mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
lib/oe/package_manager: bail if createrepo can't be found
If createrepo isn't found then the errors later are mysterious, so explicitly check and error out early if it isn't there. (From OE-Core rev: e09636bbb3ea8ec58984197fd9c691bb908efe00) (From OE-Core rev: c87361fc886432a9db584712bf3e41ecd0541960) (From OE-Core rev: 0adc876ed8be21190510a91220f9755c8e9df021) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> [Fixup do to merge conflicts] Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
8cdf2a2e36
commit
55049700e4
|
@ -165,6 +165,10 @@ class RpmIndexer(Indexer):
|
|||
archs = archs.union(set(sdk_pkg_archs))
|
||||
|
||||
rpm_createrepo = bb.utils.which(os.getenv('PATH'), "createrepo")
|
||||
if not rpm_createrepo:
|
||||
bb.error("Cannot rebuild index as createrepo was not found in %s" % os.environ['PATH'])
|
||||
return
|
||||
|
||||
if self.d.getVar('PACKAGE_FEED_SIGN', True) == '1':
|
||||
signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND', True))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user