From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mail.openembedded.org (Postfix) with ESMTP id CD25671CB8 for ; Wed, 20 Sep 2017 12:55:08 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2017 05:54:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,421,1500966000"; d="scan'208";a="1174126323" Received: from kanavin-desktop.fi.intel.com ([10.237.68.161]) by orsmga001.jf.intel.com with ESMTP; 20 Sep 2017 05:54:58 -0700 From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Date: Wed, 20 Sep 2017 15:51:00 +0300 Message-Id: <20170920125100.38469-1-alexander.kanavin@linux.intel.com> X-Mailer: git-send-email 2.14.1 Subject: [PATCH] meta/lib/oe/rootfs.py: clean up dnf cache after creating an image X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2017 12:55:09 -0000 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 --- meta/lib/oe/rootfs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 9d4727e76c1..71bd1a78dce 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): -- 2.14.1