mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +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) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
94c469c0d8
commit
de43650c29
@@ -164,7 +164,11 @@ class RpmIndexer(Indexer):
|
|||||||
|
|
||||||
archs = archs.union(set(sdk_pkg_archs))
|
archs = archs.union(set(sdk_pkg_archs))
|
||||||
|
|
||||||
rpm_createrepo = bb.utils.which(os.getenv('PATH'), "createrepo")
|
rpm_createrepo = bb.utils.which(os.environ['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') == '1':
|
if self.d.getVar('PACKAGE_FEED_SIGN') == '1':
|
||||||
signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND'))
|
signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND'))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user