[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7838/8267] meta/lib/oe/rootfs.py: clean up dnf cache after creating an image
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 7838/8267] meta/lib/oe/rootfs.py: clean up dnf cache after creating an image
- Date: Sun, 17 Dec 2017 06:48:36 +0000 (UTC)
commit 141bfb844ed3d36a873a6514ba28964d42fec70c
Author: Alexander Kanavin <alexander kanavin linux intel com>
Date: 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.
(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>
meta/lib/oe/rootfs.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]