refresh_clearing=Clearing package caches ..
refresh_done=.. done
refresh_available=Re-fetching available packages ..
-refresh_done2=.. found $1 in total
+refresh_done3=.. found $1 possible updates
view_title=Package Details
view_header=Updatable package information
my ($name, $system) = @_;
my @rv;
my $pkg;
+
# First get from list of updates
($pkg) = grep { $_->{'update'} eq $name &&
($_->{'system'} eq $system || !$system) }
my @rv;
my @current = &list_current($nocache);
if (&supports_updates_available()) {
+ # Software module supplies a function that can list just packages
+ # that need updating
my %currentmap;
foreach my $c (@current) {
$currentmap{$c->{'name'},$c->{'system'}} ||= $c;
# Force re-fetch
print $text{'refresh_available'},"<br>\n";
- @avail = &list_available();
- print &text('refresh_done2', scalar(@avail)),"<p>\n";
+ @avail = &list_possible_updates();
+ print &text('refresh_done3', scalar(@avail)),"<p>\n";
&webmin_log("refresh");
&ui_print_footer($redir, $text{'index_return'});