Project

General

Profile

Actions

Regression #16768

open

pkg 2.6.2 breaks the GUI update check code

Added by Steve Wheeler 1 day ago. Updated about 21 hours 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

Also available in: Atom PDF