[oe-commits] [openembedded-core] 12/46: meta/lib/oe/rootfs.py: clean up dnf cache after creating an image

git at git.openembedded.org git at git.openembedded.org
Thu Sep 21 22:13:47 UTC 2017


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 3ae410e49ac96de219d5d640dcf797e8aab33d61
Author: Alexander Kanavin <alexander.kanavin at linux.intel.com>
AuthorDate: Wed Sep 20 15:51:00 2017 +0300

    meta/lib/oe/rootfs.py: clean up dnf cache after creating an image
    
    It contains cached metadata for a transient repository that is used
    only when creating images on the host, and so is of no use on target
    images. Dnf will recreate the cache on target when needed.
    
    Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
    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 9d4727e..71bd1a7 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -525,7 +525,8 @@ class RpmRootfs(Rootfs):
             self.pm.save_rpmpostinst(pkg)
 
     def _cleanup(self):
-        pass
+        self.pm._invoke_dnf(["clean", "all"])
+
 
 class DpkgOpkgRootfs(Rootfs):
     def __init__(self, d, progress_reporter=None, logcatcher=None):

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


More information about the Openembedded-commits mailing list