Skip to content

Commit

Permalink
Fix regression in detecting available upgrades for libraries.
Browse files Browse the repository at this point in the history
Commit 9705d28 removed this, but we still need to query the pear
system, as pear installs will not have libraries in the same root
folder as applications.
  • Loading branch information
mrubinsk committed Sep 25, 2018
1 parent 2129246 commit 9e8d9c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/config/index.php
Expand Up @@ -79,6 +79,9 @@ function _uploadFTP($params)
$pearConfig = PEAR_Config::singleton();
$packageFile = new PEAR_PackageFile($pearConfig);
$packages = array();
foreach ($pearConfig->getRegistry()->packageInfo(null, null, 'pear.horde.org') as $package) {
$packages[$package['name']] = $package['version']['release'];
}
foreach (glob(__DIR__ . '/../../../*/package.xml') as $packagexml) {
$package = $packageFile->fromPackageFile($packagexml, PEAR_VALIDATE_NORMAL);
if (!($package instanceof PEAR_Error)) {
Expand Down

0 comments on commit 9e8d9c5

Please sign in to comment.