[oe-commits] [openembedded-core] branch pyro-next updated: sdk: streamline locale removal

git at git.openembedded.org git at git.openembedded.org
Fri Mar 16 17:08:47 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch pyro-next
in repository openembedded-core.

The following commit(s) were added to refs/heads/pyro-next by this push:
     new 78ba15c  sdk: streamline locale removal
78ba15c is described below

commit 78ba15cb4e8e3127e407742cda6c22301ac0a881
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Fri Mar 16 11:28:32 2018 +0000

    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 at intel.com>
---
 meta/lib/oe/sdk.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index dbfa5a2..f89382c 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list