From: Ross Burton Date: Fri, 16 Mar 2018 11:28:32 +0000 (+0000) Subject: sdk: streamline locale removal X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3ebd1a7db39ee5e7ea68e2642a14a03d9b48d8fa;p=openembedded-core.git sdk: streamline locale removal For some reason dnf is aborting with the fairly useless "failed to read RPMDB" error during SDK creation. Luckily as we're just deleting locale packages we can pass False to remove() to use RPM directly, which doesn't crash. (From OE-Core rev: cb118806841e585ec6ca820360329ae7d122c0af) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index bfe9e3a744..ec0af3e1c1 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py @@ -147,7 +147,7 @@ class Sdk(object, metaclass=ABCMeta): generate_locale_archive(self.d, oe.path.join(self.sdk_host_sysroot, self.sdk_native_path)) # And now delete the binary locales pkgs = fnmatch.filter(pm.list_installed(), "nativesdk-glibc-binary-localedata-*.utf-8") - pm.remove(pkgs) + pm.remove(pkgs, with_dependencies=False) else: # No linguas so do nothing pass