]> code.ossystems Code Review - openembedded-core.git/commitdiff
sdk: streamline locale removal
authorRoss Burton <ross.burton@intel.com>
Fri, 16 Mar 2018 11:28:32 +0000 (11:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Mar 2018 09:11:19 +0000 (10:11 +0100)
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/sdk.py

index dbfa5a2d5c6d5691bd08e1a72e43506f465ca2a5..f89382cd03a548ec7c7b4dfe2fb16bd0081424f3 100644 (file)
@@ -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