From patchwork Mon Nov 27 18:28:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 119765 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp648743qgn; Mon, 27 Nov 2017 10:28:19 -0800 (PST) X-Google-Smtp-Source: AGs4zMYEKOjQeDjT1Z2+hDyVTEPH+Aapyhv2NzOjDWQeWcu56XVhVtbRsBWweMzrKYLAqHZ7is3u X-Received: by 10.99.4.142 with SMTP id 136mr36723326pge.72.1511807299675; Mon, 27 Nov 2017 10:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511807299; cv=none; d=google.com; s=arc-20160816; b=xEUHg82ZqxY/ZOxHufnAYh4S5qWAXmk0lwsE7FyjUDZg4ZxygnYHYIIzey1eFoQVdD 6FjL35jBijJVeCwyv+XWiYvTvL0LLICIX9g7rsCnzgMN6nWC28qizoHEobpHQjFjUHLv GE/XPoQR0HdfpSpC1QOh8xJRypyEjATWJr+6VuDdpnuTUsHZdq3Yv4HfJgqDlU5bEvYq 0NLON0byINrpbcv2LfrJk43f9pv/zbYSDyDJM7pYqyDI3+cOLxEZ8h315vvQqCR2Nuyt TXDfN0CAwh1WeYo4/hWQX9TXww0Hv2ipr6fm/R39gs+jxvx1wHblX3KdsMf2wDUTqa4l uScQ== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=oDSwsE/X7XjQ5d2Z+dqvZWnsuUJbPAaRd9RUDYawI8k=; b=0+URLQWHiLXm00lrZ1vwbmE9T57R+H+/u2TKHPijXNXd/C6GxKOCyU0CKDy+34OiGi Gyi8J6LL1W1uz9gi6CH7P2W1QGvXiR29I3Av57h6wtLDqf0Idr9g0yNr3O+WirYwslTm nUK9LXAWTB+kps0tVugk3s7Md957tDqn099EAChu53+oAdtWOecx9KkM9vqORBHCIXgm depg29r5DbT0P7P1F6u9/yN/f11qYTOedSJnGEu1i6V7B37RduZYq7nYwr4IvJszt3SK NJC5/Cjzk5tW/WZwNqg0wuXAf8eD+rpP/xopse/g3QSet3cK5pBt5n0OFURPsZbCYU4Q 1T7g== 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=rWlc/Ab0; 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 f20si6502135pgv.712.2017.11.27.10.28.18; Mon, 27 Nov 2017 10:28:19 -0800 (PST) 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=rWlc/Ab0; 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 review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DF4F3783DD; Mon, 27 Nov 2017 18:28:14 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by mail.openembedded.org (Postfix) with ESMTP id 2E04A783BB for ; Mon, 27 Nov 2017 18:28:13 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id u83so36255506wmb.5 for ; Mon, 27 Nov 2017 10:28:15 -0800 (PST) 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; bh=udXyKFVVyczvInicKb2OPS+ob48bKWmJhW7INkDhEfA=; b=rWlc/Ab02plE9+Ym9b4OS5/YR2nfkBXKJearvukJ2lBBMHYjpzUU9G0g2lcQ/U2QWr JkPW8FISJRVRxoyggTshsNzxIkVQodG3g8lsPsuEpD7X0Wwl9w0Co5lWOD0R338Rib8X n5zVLrE0ST8K3EQlyL7T5LDOGsxACNbiu/7ilY1O6gDnttNaPmSw6tygonZaxlvat2yz P9wyC7gNPK2juQxpozwdhrdZLFwKYkaDmPC5qmBTWtYvc/6K9lQwwGVi3uF+Pg2Y5yAP 4+DPsmil1QEtKy7nH3XPHM6yOCBrOVFcTVrcETA7wcun+M2HJe28o6l14NgBNhWhjmBf hK+w== 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; bh=udXyKFVVyczvInicKb2OPS+ob48bKWmJhW7INkDhEfA=; b=MMYSjP7KXwhBtSrA+H8gBbslc1VhU3VAyW+EhbP4r6kS5h6vh5JIEbVr/LpNC97ZBS lzUZCORwLXvIibE9boUahC5H7N0o2lVkOM63PuHzrq7Z0aajgrFX8VWUY78JX4DzkKem 5UYqZkLtWZHtguRZP8HDWafTDkXx6kPHUtntQ1Q9BQhwTT9cJpFn75k6rQCWHSb3z1xf TBhapyIxxTf0+t0p8CWP1M7iWdzL97ngSBV9d9whFej6jXyQNGBOw/uxWu4UgFVP9d2D kfQZdvb7VKb4QW2dg8ZGObDGWrf7kWxOv4b8W/rpYLu3xNo8SIioZa0alz0UTpTZvfC2 OIvQ== X-Gm-Message-State: AJaThX5TbqGjfe6I4/MYIpV3domIc1rpS3PvvFc035DdwWxCliOOMvi9 a5SBNMUeoW1axn7mUf+qnT3B9mnq X-Received: by 10.28.193.139 with SMTP id r133mr19067471wmf.39.1511807294734; Mon, 27 Nov 2017 10:28:14 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id b66sm2525664wmh.32.2017.11.27.10.28.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Nov 2017 10:28:13 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 27 Nov 2017 18:28:11 +0000 Message-Id: <20171127182811.22760-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] package_manager: force dnf to refresh the cache 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 DNF has a time-based cache policy (and a great sense of humour) so it's possible that 'dnf makecache' won't actually refresh any caches. Force the cache updates by passing --refresh. Signed-off-by: Ross Burton --- meta/lib/oe/package_manager.py | 2 +- 1 file changed, 1 insertion(+), 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/package_manager.py b/meta/lib/oe/package_manager.py index 6cbb61fd849..ef69b18b642 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -692,7 +692,7 @@ class RpmPM(PackageManager): return packages def update(self): - self._invoke_dnf(["makecache"]) + self._invoke_dnf(["makecache", "--refresh"]) def _invoke_dnf(self, dnf_args, fatal = True, print_output = True ): os.environ['RPM_ETCCONFIGDIR'] = self.target_rootfs