diff options
author | Ross Burton <ross.burton@intel.com> | 2018-04-27 16:56:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-22 13:09:01 +0100 |
commit | f23332dc6a0c5b49246b4d17ec4e6fcad0cb7d47 (patch) | |
tree | 0c34ab9cb83efa9d06475fc2acffbe5efa882436 | |
parent | c8a6422457b4d29e6afd1e193b8b921287472137 (diff) | |
download | openembedded-core-f23332dc6a0c5b49246b4d17ec4e6fcad0cb7d47.tar.gz openembedded-core-f23332dc6a0c5b49246b4d17ec4e6fcad0cb7d47.tar.bz2 openembedded-core-f23332dc6a0c5b49246b4d17ec4e6fcad0cb7d47.zip |
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)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | 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 f8f717c050..c51e76ddfc 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -472,7 +472,8 @@ class RpmRootfs(Rootfs): self._log_check_error() def _cleanup(self): - self.pm._invoke_dnf(["clean", "all"]) + if bb.utils.contains("IMAGE_FEATURES", "package-management", True, False, self.d): + self.pm._invoke_dnf(["clean", "all"]) class DpkgOpkgRootfs(Rootfs): |