Commit 09ea0aa8 authored by Franco Fichtner's avatar Franco Fichtner

firmware: delete_packages is unsupported

pkg can display to-be-deleted packages, but won't resolve these
issues when triggered using "upgrade -n".  Thus, it's pointless
to try to keep this code until a newer pkg release can actually
cope with resolving the full upgrade cycle before upgrading.
parent 34cea240
......@@ -98,11 +98,10 @@ class FirmwareController extends ApiControllerBase
/*
* new_packages: array with { name: <package_name>, version: <package_version> }
* reinstall_packages: array with { name: <package_name>, version: <package_version> }
* delete_packages: array with { name: <package_name>, version: <package_version> }
* upgrade_packages: array with { name: <package_name>,
* current_version: <current_version>, new_version: <new_version> }
*/
foreach (array('new_packages', 'reinstall_packages', 'delete_packages', 'upgrade_packages') as $pkg_type) {
foreach (array('new_packages', 'reinstall_packages', 'upgrade_packages') as $pkg_type) {
if (isset($response[$pkg_type])) {
foreach ($response[$pkg_type] as $value) {
switch ($pkg_type) {
......@@ -122,14 +121,6 @@ class FirmwareController extends ApiControllerBase
'name' => $value['name'],
);
break;
case 'delete_packages':
$sorted[$value['name']] = array(
'reason' => gettext('delete'),
'old' => $value['version'],
'name' => $value['name'],
'new' => gettext('N/A'),
);
break;
case 'upgrade_packages':
$sorted[$value['name']] = array(
'reason' => gettext('update'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment