mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Merge branch 'ent-12506-update-774-por-rpm-deja-current_pakage-en-el-campo-en-blanco' into 'develop'
fix update current packege pandora_enterprise#12506 See merge request artica/pandorafms!6691
This commit is contained in:
commit
3a00f3cad3
@ -53,12 +53,30 @@ try {
|
|||||||
echo 'current historyDB MR: '.Config::get('MR', 'unknown', true)."\n";
|
echo 'current historyDB MR: '.Config::get('MR', 'unknown', true)."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
global $pandora_version;
|
||||||
|
if (isset($pandora_version) === true
|
||||||
|
&& empty($pandora_version) === false
|
||||||
|
) {
|
||||||
|
$version_array = explode('.', $pandora_version);
|
||||||
|
if (is_array($version_array) === true) {
|
||||||
|
$current_package = $version_array[2];
|
||||||
|
if (count($version_array) > 2) {
|
||||||
|
foreach ($version_array as $key => $value) {
|
||||||
|
if ($key > 2) {
|
||||||
|
$current_package .= '.'.$value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$umc = new UpdateManager\Client(
|
$umc = new UpdateManager\Client(
|
||||||
[
|
[
|
||||||
'homedir' => $config['homedir'],
|
'homedir' => $config['homedir'],
|
||||||
'dbconnection' => $config['dbconnection'],
|
'dbconnection' => $config['dbconnection'],
|
||||||
'historydb' => $historical_dbh,
|
'historydb' => $historical_dbh,
|
||||||
'MR' => (int) $current_mr,
|
'MR' => (int) $current_mr,
|
||||||
|
'current_package' => ($current_package ?? ''),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user