Actions
Regression #16768
openpkg 2.6.2 breaks the GUI update check code
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
26.07
Release Notes:
Default
Affected Version:
2.9.0
Affected Architecture:
Description
The values returned by the new pkg version (2.6.2) do not present queried pkg versions in the same way. This breaks the update check code that uses it to compare available pkgs.
For example the following test code should the pkgs and their versions:
require_once('pkg-utils.inc');
$installed_packages = implode(' ', array_filter([
get_core_pkg_names() ?: '',
get_meta_pkg_name() ?: ''
]));
var_dump($installed_packages);
$installed_version = null;
foreach (get_pkg_info($installed_packages, true, true) as $item) {
var_dump($item['name']);
var_dump($item['installed_version']);
};
That works in pkg 2.5.X and in 2.6.0 but fails to return ny version strings in 2.6.2.
Updated by Brad Davis about 23 hours ago
On my VM with pkg 2.6.2:
php > require_once('pkg-utils.inc');
php > print_r(get_meta_pkg_name());
pfSense
php > print_r(get_core_pkg_names());
pfSense-base pfSense-kernel-pfSense
Updated by Steve Wheeler about 22 hours ago
But in 26.03 with pkg 2.5.1.
string(43) "pfSense-base pfSense-kernel-pfSense pfSense" string(7) "pfSense" string(21) "26.03.r.20260317.0210" string(12) "pfSense-base" string(21) "26.03.r.20260317.0210" string(22) "pfSense-kernel-pfSense" string(21) "26.03.r.20260317.0210"
Same in 26.07-dev with pkg 2.6.0
Updated by Christian McDonald about 20 hours ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset commit:214d4dabbf0b37f857f4c7f41a45c9599ccbfa95.
Updated by Christian McDonald about 19 hours ago
- Assignee set to Christian McDonald
Actions