diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/package_manager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index bb458691e3..e557473999 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -164,7 +164,11 @@ class RpmIndexer(Indexer): | |||
164 | 164 | ||
165 | archs = archs.union(set(sdk_pkg_archs)) | 165 | archs = archs.union(set(sdk_pkg_archs)) |
166 | 166 | ||
167 | rpm_createrepo = bb.utils.which(os.getenv('PATH'), "createrepo") | 167 | rpm_createrepo = bb.utils.which(os.environ['PATH'], "createrepo") |
168 | if not rpm_createrepo: | ||
169 | bb.error("Cannot rebuild index as createrepo was not found in %s" % os.environ['PATH']) | ||
170 | return | ||
171 | |||
168 | if self.d.getVar('PACKAGE_FEED_SIGN') == '1': | 172 | if self.d.getVar('PACKAGE_FEED_SIGN') == '1': |
169 | signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND')) | 173 | signer = get_signer(self.d, self.d.getVar('PACKAGE_FEED_GPG_BACKEND')) |
170 | else: | 174 | else: |