[oe-commits] [openembedded-core] 06/38: lib/oe/package_manager: bail if createrepo can't be found

git at git.openembedded.org git at git.openembedded.org
Thu Apr 5 14:14:29 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch morty
in repository openembedded-core.

commit 0adc876ed8be21190510a91220f9755c8e9df021
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Dec 15 17:19:46 2016 +0000

    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    [Fixup do to merge conflicts]
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/lib/oe/package_manager.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 12dffe5..ede11b2 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list