From fd468868dda235e31a1c747dbddb79e737dd96fa Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Mon, 5 Jun 2023 17:43:09 +0200 Subject: [PATCH] apt repositories: actually ignore ignore-pre-upgrade-warning when upgrading is possible rather than throwing an error by reaching the else branch. Signed-off-by: Fiona Ebner Signed-off-by: Thomas Lamprecht --- src/node/APTRepositories.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index 1fb627c..cb08bb6 100644 --- a/src/node/APTRepositories.js +++ b/src/node/APTRepositories.js @@ -654,10 +654,12 @@ Ext.define('Proxmox.node.APTRepositories', { if (info.kind === 'origin') { infos[path][idx].origin = info.message; - } else if (info.kind === 'warning' || - (info.kind === 'ignore-pre-upgrade-warning' && !repoGrid.majorUpgradeAllowed) - ) { + } else if (info.kind === 'warning') { infos[path][idx].warnings.push(info); + } else if (info.kind === 'ignore-pre-upgrade-warning') { + if (!repoGrid.majorUpgradeAllowed) { + infos[path][idx].warnings.push(info); + } } else { throw 'unknown info'; }