summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-29 16:19:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-29 16:19:56 +0000
commit68c97918d0e7c6204139652d0872c4c8348f278b (patch)
tree5c1c28e77cafff1ab47575f6f93b23aa33ff27c4 /usr/local/www/pkg_mgr.php
parentc73c738f408921777b2caadcb33868f4eadf6c23 (diff)
downloadpfsense-68c97918d0e7c6204139652d0872c4c8348f278b.zip
pfsense-68c97918d0e7c6204139652d0872c4c8348f278b.tar.gz
Check the entire required_version field, not the first char
Diffstat (limited to 'usr/local/www/pkg_mgr.php')
-rwxr-xr-xusr/local/www/pkg_mgr.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index c5f8284..079c743 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -105,6 +105,7 @@ include("head.inc");
if(!$pkg_info) {
echo "<tr><td colspan=\"5\"><center>There are currently no packages available for installation.</td></tr>";
} else {
+ $installed_pfsense_version = rtrim(file_get_contents("/etc/version"));
$pkgs = array();
$instpkgs = array();
if($config['installedpackages']['package'] != "")
@@ -137,6 +138,10 @@ include("head.inc");
if($index['major_version'] == $major &&
$requested_version == "other")
continue;
+ /* Package is for a newer version, lets skip */
+ if($installed_pfsense_version < $index['required_version'])
+ continue;
+
?>
<tr valign="top">
<td class="listlr">
OpenPOWER on IntegriCloud