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

git at git.openembedded.org git at git.openembedded.org
Thu May 3 23:09:07 UTC 2018


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

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

commit 7b459ac5c9b97db2c551a5d3f477d8162144aca0
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.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 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