Browse Source

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@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Alexander Kanavin 6 years ago
parent
commit
89ddf2516b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      meta/lib/oe/rootfs.py

+ 2 - 1
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):