]> code.ossystems Code Review - openembedded-core.git/commitdiff
meta/lib/oe/rootfs.py: clean up dnf cache after creating an image
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Wed, 20 Sep 2017 12:51:00 +0000 (15:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Sep 2017 16:14:42 +0000 (17:14 +0100)
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@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/rootfs.py

index 9d4727e76c15ad741f67c493513cc27769b13313..71bd1a78dce6690c416986610762fa38bc1a6968 100644 (file)
@@ -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):