diff options
author | Ross Burton <ross.burton@intel.com> | 2018-03-16 11:28:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-04-02 17:06:24 +0100 |
commit | e04867e26fd30ad4f30000a69d27f0ba7d76df89 (patch) | |
tree | 9cc47ca8d2943856e97b63500bda9ed55bc1a4e6 | |
parent | 796efea2d2359e6edbd5d4232895ef3a65959f5d (diff) | |
download | poky-e04867e26fd30ad4f30000a69d27f0ba7d76df89.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.
(From OE-Core rev: cb118806841e585ec6ca820360329ae7d122c0af)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/sdk.py | 2 |
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): | |||
147 | generate_locale_archive(self.d, oe.path.join(self.sdk_host_sysroot, self.sdk_native_path)) | 147 | generate_locale_archive(self.d, oe.path.join(self.sdk_host_sysroot, self.sdk_native_path)) |
148 | # And now delete the binary locales | 148 | # And now delete the binary locales |
149 | pkgs = fnmatch.filter(pm.list_installed(), "nativesdk-glibc-binary-localedata-*.utf-8") | 149 | pkgs = fnmatch.filter(pm.list_installed(), "nativesdk-glibc-binary-localedata-*.utf-8") |
150 | pm.remove(pkgs) | 150 | pm.remove(pkgs, with_dependencies=False) |
151 | else: | 151 | else: |
152 | # No linguas so do nothing | 152 | # No linguas so do nothing |
153 | pass | 153 | pass |