]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_manager: force dnf to refresh the cache
authorRoss Burton <ross.burton@intel.com>
Mon, 27 Nov 2017 17:14:50 +0000 (17:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Dec 2017 11:24:38 +0000 (11:24 +0000)
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 <ross.burton@intel.com>
meta/lib/oe/package_manager.py

index 6cbb61fd849a1d50c3150a88f7c959deb1e397a6..ef69b18b6420f45a9a8177703667355a8646ee7c 100644 (file)
@@ -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