diff options
author | Ross Burton <ross.burton@intel.com> | 2017-11-27 17:14:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-06 10:13:55 +0000 |
commit | dd6ba2aa9674fe37e71d42add60f445a41f92653 (patch) | |
tree | f5e08a4568c8947365540a4dcdecfcb9d05b0f7e /meta | |
parent | 8d44a51bd62d499f94411e84f8e687373f3c858f (diff) | |
download | poky-dd6ba2aa9674fe37e71d42add60f445a41f92653.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: b3b0b2e7e710195245f58b4757059906d0cf284e)
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit a6e34b6aa194a27db9667af1fb0195ac8fb563f5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
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 |