diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-20 05:04:18 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-20 05:04:18 +0000 |
commit | 3732dec34a0f9c910501bb8bef6fc47ea4ccf2ea (patch) | |
tree | 009001029d3472a4d7b01a05cd85c819acf76c67 | |
parent | 20b02a6dda20812a0016263acb3b9972ffbfabe2 (diff) | |
download | pfsense-3732dec34a0f9c910501bb8bef6fc47ea4ccf2ea.zip pfsense-3732dec34a0f9c910501bb8bef6fc47ea4ccf2ea.tar.gz |
If the current pkg_config.xml doesn't have an entry for an installed package, let the user know.
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index f3c7d98..639e570 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -64,7 +64,7 @@ include("fbegin.inc"); <?php $i = 0; - if($config['installedpackages']['package']) { + if($config['installedpackages']['package'] != "") { foreach ($config['installedpackages']['package'] as $pkg) { if($pkg['name'] <> "") { ?> @@ -78,7 +78,10 @@ include("fbegin.inc"); <td class="listlr"> <?php $latest_version = get_latest_package_version($pkg['name']); - if($pkg['version'] <> $latest_version) { + if($latest_version == -1) { + // We can't determine this package's version status. + echo "Current version unkown.<br>Installed: " . $pkg['version']; + } elseif($pkg['version'] <> $latest_version) { /* a new version of the package is available */ $id = get_pkg_id($pkg['name']); echo "Upgrade: <a href='pkg_mgr_delete.php?upgrade=true&id={$id}'>" . $latest_version . "</a>"; |