From: Ross Burton Date: Mon, 27 Nov 2017 17:14:50 +0000 (+0000) Subject: package_manager: force dnf to refresh the cache X-Git-Tag: uninative-1.8~987 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a6e34b6aa194a27db9667af1fb0195ac8fb563f5;p=openembedded-core.git package_manager: force dnf to refresh the cache 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 --- diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 6cbb61fd84..ef69b18b64 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