[oe-commits] [openembedded-core] 02/24: rootfs: only use dnf to cleanup if package management is enabled

git at git.openembedded.org git at git.openembedded.org
Tue May 22 12:13:54 UTC 2018


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

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

commit f23332dc6a0c5b49246b4d17ec4e6fcad0cb7d47
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Fri Apr 27 16:56:12 2018 +0100

    rootfs: only use dnf to cleanup if package management is enabled
    
    If package management has been disabled then we've already removed all the
    state, and running 'dnf clean all' again will simply recreate a lot of the
    files.
    
    (From OE-Core rev: 4524068ad2248b37fb08a24828d018e2f7e6a761)
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/rootfs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index f8f717c..c51e76d 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -472,7 +472,8 @@ class RpmRootfs(Rootfs):
         self._log_check_error()
 
     def _cleanup(self):
-        self.pm._invoke_dnf(["clean", "all"])
+        if bb.utils.contains("IMAGE_FEATURES", "package-management", True, False, self.d):
+            self.pm._invoke_dnf(["clean", "all"])
 
 
 class DpkgOpkgRootfs(Rootfs):

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


More information about the Openembedded-commits mailing list