summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-04-27 16:56:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-22 13:13:32 +0100
commit99745a4ddba99c43eeaaaebfd37f91b492e90cf1 (patch)
tree7992e9783eee75638d5d72ed8c8a8e43022c4fbb /meta/lib/oe
parentf0fe88b89f2b89e2fa7038580578f216aab1e34d (diff)
downloadpoky-99745a4ddba99c43eeaaaebfd37f91b492e90cf1.tar.gz
rootfs: only use dnf to cleanup if package management is enabled
If package management has been disabled then we've already removed all the state, and running 'dnf clean all' again will simply recreate a lot of the files. (From OE-Core rev: 4524068ad2248b37fb08a24828d018e2f7e6a761) (From OE-Core rev: f23332dc6a0c5b49246b4d17ec4e6fcad0cb7d47) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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 f8f717c050..c51e76ddfc 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -472,7 +472,8 @@ class RpmRootfs(Rootfs):
472 self._log_check_error() 472 self._log_check_error()
473 473
474 def _cleanup(self): 474 def _cleanup(self):
475 self.pm._invoke_dnf(["clean", "all"]) 475 if bb.utils.contains("IMAGE_FEATURES", "package-management", True, False, self.d):
476 self.pm._invoke_dnf(["clean", "all"])
476 477
477 478
478class DpkgOpkgRootfs(Rootfs): 479class DpkgOpkgRootfs(Rootfs):