summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfs.py
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:15:30 +0100
commit141bfb844ed3d36a873a6514ba28964d42fec70c (patch)
tree57421e13d8f6ce9b7d902b7ca5aadcfb669220e2 /meta/lib/oe/rootfs.py
parent8e1287867fdb27fc6ff11787636fafe600ff2b0b (diff)
downloadpoky-141bfb844ed3d36a873a6514ba28964d42fec70c.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. (From OE-Core rev: 89ddf2516b713e6622df95ab391423b033d4271a) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-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):
525 self.pm.save_rpmpostinst(pkg) 525 self.pm.save_rpmpostinst(pkg)
526 526
527 def _cleanup(self): 527 def _cleanup(self):
528 pass 528 self.pm._invoke_dnf(["clean", "all"])
529
529 530
530class DpkgOpkgRootfs(Rootfs): 531class DpkgOpkgRootfs(Rootfs):
531 def __init__(self, d, progress_reporter=None, logcatcher=None): 532 def __init__(self, d, progress_reporter=None, logcatcher=None):