Clear caches before checking for updates, so it's always fresh https://github.com/webmin/webmin/issues/1863

This commit is contained in:
Jamie Cameron
2023-03-18 16:30:09 -07:00
parent a3808605d6
commit 058230ab3d

View File

@@ -9,6 +9,8 @@ if ($ARGV[0] eq "--debug" || $ARGV[0] eq "-debug") {
}
# See what needs doing
&flush_package_caches();
&clear_repository_cache();
@todo = &list_possible_updates();
foreach $a (@todo) {
$a->{'level'} = $a->{'security'} ? 1 : 2;