diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-29 16:19:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-29 16:19:56 +0000 |
commit | 68c97918d0e7c6204139652d0872c4c8348f278b (patch) | |
tree | 5c1c28e77cafff1ab47575f6f93b23aa33ff27c4 /usr/local | |
parent | c73c738f408921777b2caadcb33868f4eadf6c23 (diff) | |
download | pfsense-68c97918d0e7c6204139652d0872c4c8348f278b.zip pfsense-68c97918d0e7c6204139652d0872c4c8348f278b.tar.gz |
Check the entire required_version field, not the first char
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 5 |
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"> |