diff options
author | jim-p <jimp@pfsense.org> | 2011-01-24 14:34:44 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-01-24 14:34:44 -0500 |
commit | 261c7de869eccca07c7d3f5ff331d28f88b2fde0 (patch) | |
tree | d0b76269dea396a71292b2915cf8241d19ac8ddf /usr/local/www/pkg_mgr_installed.php | |
parent | 8633930d113a513c87f3ed63ae3623b54255ff46 (diff) | |
download | pfsense-261c7de869eccca07c7d3f5ff331d28f88b2fde0.zip pfsense-261c7de869eccca07c7d3f5ff331d28f88b2fde0.tar.gz |
Warn users a different way if packages are being reinstalled in the background. Only lock out package pages, still print a giant warning on the others. (Some people were getting stuck in this state http://forum.pfsense.org/index.php/topic,32531.0.html )
Diffstat (limited to 'usr/local/www/pkg_mgr_installed.php')
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 48c9677..02fb8d3 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -40,6 +40,19 @@ require_once("guiconfig.inc"); require_once("pkg-utils.inc"); +/* if upgrade in progress, alert user */ +if(is_subsystem_dirty('packagelock')) { + $pgtitle = array(gettext("System"),gettext("Package Manager")); + include("head.inc"); + echo "<body link=\"#0000CC\" vlink=\"#0000CC\" alink=\"#0000CC\">\n"; + include("fbegin.inc"); + echo "Please wait while packages are reinstalled in the background."; + include("fend.inc"); + echo "</body>"; + echo "</html>"; + exit; +} + if(is_array($config['installedpackages']['package'])) { foreach($config['installedpackages']['package'] as $instpkg) { $tocheck[] = $instpkg['name']; |