Run apt-get update before returning possible updates

This commit is contained in:
Jamie Cameron
2010-03-22 22:17:02 -07:00
parent bafb2dd18c
commit a4cbe582bb

View File

@@ -194,6 +194,7 @@ return @rv;
# Returns a list of available package updates
sub update_system_updates
{
&execute_command("$apt_get_command update");
if (&has_command("apt-show-versions")) {
# This awesome command can give us all updates in one hit, and takes
# pinned versions and backports into account