aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-11-27 17:14:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-02 11:24:38 +0000
commita6e34b6aa194a27db9667af1fb0195ac8fb563f5 (patch)
tree341044bfafd9b09b68881a692444ff25d46d962c
parent7d1a28082da29e4c0db4d8bcb9f242049a763bf9 (diff)
downloadopenembedded-core-a6e34b6aa194a27db9667af1fb0195ac8fb563f5.zip
openembedded-core-a6e34b6aa194a27db9667af1fb0195ac8fb563f5.tar.gz
openembedded-core-a6e34b6aa194a27db9667af1fb0195ac8fb563f5.tar.bz2
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 <ross.burton@intel.com>
-rw-r--r--meta/lib/oe/package_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 6cbb61f..ef69b18 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