]> 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>
Thu, 5 Apr 2018 14:11:15 +0000 (15: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.

(From OE-Core rev: cb118806841e585ec6ca820360329ae7d122c0af)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oe/sdk.py

index bfe9e3a744a3768cfcc91edd48dd09606514bcc4..ec0af3e1c171a0ce8b8982f7be559520149c0c22 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