summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe
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:25:34 +0000
commiteeb79f4e18704c665c4339882efd0fde1e65d20a (patch)
tree947eb8b58aa1e8f664bcb7b6acd246241fe4a26b /meta/lib/oe
parent030c2a8573329132b289ce372276e5ffb091e05a (diff)
downloadpoky-eeb79f4e18704c665c4339882efd0fde1e65d20a.tar.gz
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. (From OE-Core rev: a6e34b6aa194a27db9667af1fb0195ac8fb563f5) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-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 6cbb61fd84..ef69b18b64 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -692,7 +692,7 @@ class RpmPM(PackageManager):
692 return packages 692 return packages
693 693
694 def update(self): 694 def update(self):
695 self._invoke_dnf(["makecache"]) 695 self._invoke_dnf(["makecache", "--refresh"])
696 696
697 def _invoke_dnf(self, dnf_args, fatal = True, print_output = True ): 697 def _invoke_dnf(self, dnf_args, fatal = True, print_output = True ):
698 os.environ['RPM_ETCCONFIGDIR'] = self.target_rootfs 698 os.environ['RPM_ETCCONFIGDIR'] = self.target_rootfs