Project

General

Profile

Actions

Regression #16768

open

pkg 2.6.2 breaks the GUI update check code

Added by Steve Wheeler 23 days ago. Updated 19 days ago.

Status:
Feedback
Priority:
Normal
Category:
Upgrade
Target version:
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.

Actions #1

Updated by Brad Davis 23 days 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
Actions #2

Updated by Steve Wheeler 23 days 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

Actions #3

Updated by Christian McDonald 23 days ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Applied in changeset commit:214d4dabbf0b37f857f4c7f41a45c9599ccbfa95.

Actions #4

Updated by Christian McDonald 23 days ago

  • Assignee set to Christian McDonald
Actions #5

Updated by Brad Davis 19 days ago

Also fixed in pkg 2.6.2_2

Actions

Also available in: Atom PDF