Workaound fixes #6320

This commit is contained in:
Stephen Beaver 2016-05-07 13:42:01 -04:00
parent af06931c30
commit d1c57eb8e1
2 changed files with 3 additions and 4 deletions

View File

@ -1115,7 +1115,7 @@ function get_base_pkg_name() {
}
/* Verify if system needs upgrade (meta package or base) */
function get_system_pkg_version() {
function get_system_pkg_version($baseonly = false) {
global $g;
$base_pkg = get_base_pkg_name();
@ -1135,8 +1135,7 @@ function get_system_pkg_version() {
}
}
if (empty($pkg_info) ||
$pkg_info['version'] == $pkg_info['installed_version']) {
if (empty($pkg_info) || (!$baseonly && ($pkg_info['version'] == $pkg_info['installed_version']))) {
$info = get_pkg_info($meta_pkg);
$pkg_name = $meta_pkg;

View File

@ -100,7 +100,7 @@ if ($_REQUEST['ajax']) {
// If this is an ajax call to get the installed and newst versions, call that function,
// JSON encode the result, print it and exit
if ($_REQUEST['getversion']) {
$firmwareversions = get_system_pkg_version();
$firmwareversions = get_system_pkg_version(true);
print(json_encode($firmwareversions));
exit;
}