aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2017-09-20 15:51:00 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-22 17:14:42 +0100
commit89ddf2516b713e6622df95ab391423b033d4271a (patch)
treede6eac801f29c351f83ffe786ab4473097165bcd
parent2fb74abbe07b6b82a715ac0fe16449bd8420110e (diff)
downloadopenembedded-core-contrib-89ddf2516b713e6622df95ab391423b033d4271a.tar.gz
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>
-rw-r--r--meta/lib/oe/rootfs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 9d4727e76c..71bd1a78dc 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):