From patchwork Fri Apr 27 15:58:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 134628 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp887498lji; Fri, 27 Apr 2018 08:58:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQyS/LcEtn1q8yzfoWHEqAtjNDTM7mIPma2Al016NhYX05YlonjLdM+a7gnx4tYBlZK7qL X-Received: by 10.98.161.17 with SMTP id b17mr2362151pff.132.1524844728911; Fri, 27 Apr 2018 08:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524844728; cv=none; d=google.com; s=arc-20160816; b=ZZ/5I2frmGlxuDStc4qS0J6+p3ER1JL8Uh55993KUoN4yk0K9iBmsFTRwL2mRfTrxM Gk0SDem7hOL4SngscegV3jAUIKNEF/KUi6XEYwkSThOgutckO+uBRvi3MOMPY901YsZD w3f4lb95T4ZM/4eQLK1nJQ48PA35ONiDR/n+czQvwjOSbGarldOe0LuJB+2LQcgfFsB8 o1m8ZLlZdt4VH9rLYAk5ECvwqbNoVG1S5mwSDEYWZCSh7vynQQNIRnmlrRRxHL4grd7T Y0NPVpuLe+tXkxEUYPnsl9FpHtRWwHyHBBKKAn8q5NbB320vbtuoL3QrLmMbUgUHh5Jb CZmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=ytihgABZf476uWj5MyfPukLC//easIBx98rlV+LJML0=; b=uyqUUrnUBLVypCxuPQZ+tDytMvR7OGQrA2cviPZr0ePGkBAWUnMF4Uh5jl5C18kLA8 GE0knOxVZ23+Icq71b51aV1CG3KX7wW3M1Hqevi83zEbKSLnqz6r3VjzXHlZ70byXmxW PibJXekDHpY3UnIXWd9DVoCmuvxrAJFW5Cl/9tfN5NlZD7h5+NykYaJ3B1W5yNic5/4j XgOCjZb77CDALD83hgFt5LGT+Np8yOuPI7txFlXbwpXYkUeyXloqeaeX8bWpraqyU3+P h7kwcgTW9SfkB3z3HyQPJGTeOzAgfHvGaJljIJZkFoawjcJyzOKmKWbpHmu2lY7t5m6h +tRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jin22o2m; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t14-v6si1444662pgf.93.2018.04.27.08.58.48; Fri, 27 Apr 2018 08:58:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jin22o2m; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 00FFD745A7; Fri, 27 Apr 2018 15:58:46 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by mail.openembedded.org (Postfix) with ESMTP id 622DC74559 for ; Fri, 27 Apr 2018 15:58:26 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id i3so3757816wmf.3 for ; Fri, 27 Apr 2018 08:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=hTroKJzLuTpn8xYXHHpbsPeMSiUIx1COB+MXcAu8yZQ=; b=jin22o2mOGqEPf1FHeKUA3F4LwkZkwrXjKC5mpK+uJgAh+jBg/Ri6Awm3LuXHHDjpp OLetqqQiBS9JFnLSSn9bLEEqMFjRfW9PIzTcadvAWwxazEFxqZzZZgIIPBCi3ckDjgtS Lb04CMaXwRuREt9wEEnlGqtiY/HRKuXuijy66DfR/SqwyMRKfFXxDNvYzb2aRZp1jwe1 aFwL0oDs9gYDlZ8SReVriw2VYeZdiPFxATSqhJ19w+zPvh6rl/+NUm3CSS+vsS4q63HC sHQQ2G6B+qlxl9HFBDAddNHXJnS+dMHCzuElY2DwczZicC0gO8SkTYXvWvdHEZhMtoZS /N0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=hTroKJzLuTpn8xYXHHpbsPeMSiUIx1COB+MXcAu8yZQ=; b=XggtCDj5k4GgGaZ7+5YoNzwxUytnVlX64lsJH9bZLmc7VqjAPcRlAQs6CGuN0jshkL d6oAeIz5cPUrFl/gJffGXI9e3qRwtmja+rxKL+PtlmmJZsjMNvVVtsFLmQtN4U428Jh2 RTLDQY0gpBIZxneltNMd42ShVqPR0e73FNYSiJRVb4HUbBVD21oV9zGk1rAFZehxL+pa mfl1vcpvNFh3kiYZtvgCu7ovcatFn4zsSjvUmC+DJq/Gk/YyygEXCoDwDtBLbRgZJ9wk mNjPlV0bFMxvySccWZLYowb/oq8xxu90DpUowx1eSEraLeANtZgBybPYjClm5B4ebfKc 1w5Q== X-Gm-Message-State: ALQs6tBLrAQ6gyCOXk+j3FuSycYHmgP796jfiIi+RHrP/pZXodYNk3Pg hb/tmey70m97sQMEwFhUpT70uDVs X-Received: by 10.28.24.11 with SMTP id 11mr1898128wmy.21.1524844707007; Fri, 27 Apr 2018 08:58:27 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id q138sm1724000wmd.1.2018.04.27.08.58.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 08:58:26 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 27 Apr 2018 16:58:23 +0100 Message-Id: <20180427155823.30464-2-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180427155823.30464-1-ross.burton@intel.com> References: <20180427155823.30464-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 2/2] rootfs: only use dnf to cleanup if package management is enabled 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org 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. Signed-off-by: Ross Burton --- meta/lib/oe/rootfs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index f8f717c0505..c51e76ddfcb 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):