Don't check for packages at install time if Virtualmin's package system
authorJamie Cameron <jcameron@webmin.com>
Sun, 13 Dec 2009 20:41:09 +0000 (12:41 -0800)
committerJamie Cameron <jcameron@webmin.com>
Sun, 13 Dec 2009 20:41:09 +0000 (12:41 -0800)
is installed.

package-updates/postinstall.pl

index 7cae1b7..9efb35a 100644 (file)
@@ -6,7 +6,8 @@ sub module_install
 # Force clear all caches, as collected information may have changed
 &flush_package_caches();
 
-if ($software::update_system ne 'yum') {
+if ($software::update_system ne 'yum' &&
+    !&foreign_check("security-updates")) {
        # Re-generate cache of available packages
        &list_available();
        }