Run apt-get update before returning possible updates
authorJamie Cameron <jcameron@webmin.com>
Tue, 23 Mar 2010 05:17:02 +0000 (22:17 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 23 Mar 2010 05:17:02 +0000 (22:17 -0700)
software/apt-lib.pl

index 87238ee..7d87116 100755 (executable)
@@ -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