summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-03-16 11:28:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-05 15:13:48 +0100
commitde9010edecf3b827ca4f071b88f1f3bcd2b75210 (patch)
tree1693f760127e101f9151c51030e36903ef2b0cfa
parent85f9b65306d4097f20614199624339aa9bdd0fed (diff)
downloadpoky-de9010edecf3b827ca4f071b88f1f3bcd2b75210.tar.gz
poky-de9010edecf3b827ca4f071b88f1f3bcd2b75210.tar.bz2
poky-de9010edecf3b827ca4f071b88f1f3bcd2b75210.zip
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) (From OE-Core rev: 3ebd1a7db39ee5e7ea68e2642a14a03d9b48d8fa) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/sdk.py2
1 files changed, 1 insertions, 1 deletions
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