Skip to contentSkip to conversation

package_manager: force dnf to refresh the cache

PATCH New Ross Burton 1 participant 1 message Nov 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/lib/oe/package_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/package_manager.py +1 -1
index 6cbb61fd849..ef69b18b642 100644
@@ -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
Signature · 1 line
2.11.0