aboutsummaryrefslogtreecommitdiffstats
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-03-30 10:11:19 +0100
commitcb118806841e585ec6ca820360329ae7d122c0af (patch)
tree041d2f84bc5ebacf390fd38437150ae6fc598713
parent72ab0e7d49610f6ffcc99fa8723aeeaada852d88 (diff)
downloadopenembedded-core-contrib-cb118806841e585ec6ca820360329ae7d122c0af.tar.gz
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. Signed-off-by: Ross Burton <ross.burton@intel.com>
-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 dbfa5a2d5c..f89382cd03 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